From fe68820a34c2a00aa426a4d74286a1e9385fd38b Mon Sep 17 00:00:00 2001 From: bhecquet Date: Tue, 18 Jan 2022 09:01:44 +0100 Subject: [PATCH] isue #467: add some tests --- .../it/driver/support/pages/ImageDetectorPage.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/test/java/com/seleniumtests/it/driver/support/pages/ImageDetectorPage.java b/core/src/test/java/com/seleniumtests/it/driver/support/pages/ImageDetectorPage.java index 9d5300e2a..8c10e0f25 100644 --- a/core/src/test/java/com/seleniumtests/it/driver/support/pages/ImageDetectorPage.java +++ b/core/src/test/java/com/seleniumtests/it/driver/support/pages/ImageDetectorPage.java @@ -1,6 +1,7 @@ package com.seleniumtests.it.driver.support.pages; import org.openqa.selenium.By; +import org.openqa.selenium.WebDriverException; import com.seleniumtests.core.SeleniumTestsContextManager; import com.seleniumtests.driver.BrowserType; @@ -36,5 +37,11 @@ public ImageDetectorPage _clickErrorButton() { errorButton.click(); return this; } + + public ImageDetectorPage _clickErrorButtonInError() { + errorButton.click(); + throw new WebDriverException("failure"); + + } }