diff --git a/automator/src/com/testsigma/automator/actions/web/verify/VerifyAlertPresentAction.java b/automator/src/com/testsigma/automator/actions/web/verify/VerifyAlertPresentAction.java index 71a682ac..a710dbcc 100644 --- a/automator/src/com/testsigma/automator/actions/web/verify/VerifyAlertPresentAction.java +++ b/automator/src/com/testsigma/automator/actions/web/verify/VerifyAlertPresentAction.java @@ -17,7 +17,7 @@ public class VerifyAlertPresentAction extends MobileElementAction { public void execute() throws Exception { WebDriverWait waiter = new WebDriverWait(getDriver(), Duration.ofSeconds(30)); Alert alert = waiter.until(ExpectedConditions.alertIsPresent()); - Assert.isTrue(alert != null, ALERT_VERIFICATION_FAILURE); + Assert.notNull(alert, ALERT_VERIFICATION_FAILURE); setSuccessMessage(SUCCESS_MESSAGE); } }