Skip to content

Commit

Permalink
isue #467: add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bhecquet committed Jan 18, 2022
1 parent a455c3b commit fe68820
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -36,5 +37,11 @@ public ImageDetectorPage _clickErrorButton() {
errorButton.click();
return this;
}

public ImageDetectorPage _clickErrorButtonInError() {
errorButton.click();
throw new WebDriverException("failure");

}

}

0 comments on commit fe68820

Please sign in to comment.