diff --git a/pom.xml b/pom.xml index 754d37a..98dc19b 100644 --- a/pom.xml +++ b/pom.xml @@ -181,8 +181,8 @@ com.applitools - eyes-selenium-java3 - 3.160.3 + eyes-selenium-java5 + 5.3.0 diff --git a/src/test/java/util/applitools/tests/ApplitoolsApiExceptionsTest.java b/src/test/java/util/applitools/tests/ApplitoolsApiExceptionsTest.java index f09d75b..2c0bae9 100644 --- a/src/test/java/util/applitools/tests/ApplitoolsApiExceptionsTest.java +++ b/src/test/java/util/applitools/tests/ApplitoolsApiExceptionsTest.java @@ -69,7 +69,7 @@ public void testPageAssertBeforeEyesOpened() ApplitoolsApi.updateConfiguration(); ApplitoolsApi.setupGlobal(); - Assert.assertThrows("Eyes not open", IllegalStateException.class, () -> { + Assert.assertThrows("Eyes not open", EyesException.class, () -> { ApplitoolsApi.assertPage("Homepage"); }); } @@ -87,7 +87,7 @@ public void testElementAssertBeforeEyesOpened() ApplitoolsApi.updateConfiguration(); ApplitoolsApi.setupGlobal(); - Assert.assertThrows("Eyes not open", IllegalStateException.class, () -> { + Assert.assertThrows("Eyes not open", EyesException.class, () -> { ApplitoolsApi.assertElement(By.cssSelector("#navigation"), "top navigation menu"); }); }