Annotation Type | Description |
---|---|
Android | |
Browser | |
Browsers | |
Chrome | |
DriverPaths | |
Edge | |
Firefox | |
HtmlUnit | |
IgnoreAndroid | |
IgnoreBrowser | |
IgnoreBrowsers | |
IgnoreChrome | |
IgnoreEdge | |
IgnoreFirefox | |
IgnoreHtmlUnit | |
IgnoreInternetExplorer | |
IgnoreIPad | |
IgnoreIPhone | |
IgnoreOpera | |
IgnorePhantomJS | |
IgnoreSafari | |
ImplicitlyWait |
Sets the driver's implicitly wait
Annotate a test class to set implicitly wait for all tests
@RunWith(WebDriverRunner.class)
@Firefox
@ImplicitlyWait(1)
public class SomeTest {
@Test
public void somethingToTest() {
// Implicittly wait is set to one second
}
@Test
public void somethingElseToTest() {
// Implicittly wait is set to one second
}
}
Annotate a test class method to set implicitly wait for a single test
@RunWith(WebDriverRunner.class)
@Firefox
@ImplicitlyWait(1)
public class SomeTest {
@Test
public void somethingToTest() {
// Implicittly wait is set to one second
}
@Test
@ImplicitlyWait(value = 1, unit = MINUTES)
public void somethingElseToTest() {
// Implicittly wait is set to one minute
}
}
The annotation sets the implicitly wait by calling
driver.manage().timeouts().implicitlyWait(value, unit) |
InternetExplorer | |
IPad | |
IPhone | |
Opera | |
PhantomJS | |
RemoteAddress | |
Safari | |
ScreenshotsPath |
Sets path to the directory where the screenshots are saved
|
TakeScreenshotOnFailure |
Enables taking screenshots on test failure in the WebDriverRunner
|
Copyright © 2017 WebDriver Extensions. All rights reserved.