Class FluentWebDriverAction
java.lang.Object
com.shaft.driver.internal.FluentWebDriverAction
- Direct Known Subclasses:
AlertActions, AsyncElementActions, BrowserActions, ElementActions, TouchActions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalert()and()Returns this instance to allow fluent (method-chaining) syntax between successive actions.browser()element()voidvoidinitialize(DriverFactoryHelper helper) voidinitialize(org.openqa.selenium.WebDriver driver) voidinitialize(org.openqa.selenium.WebDriver driver, boolean isSilent) touch()
-
Constructor Details
-
FluentWebDriverAction
public FluentWebDriverAction()
-
-
Method Details
-
initialize
public void initialize() -
initialize
public void initialize(org.openqa.selenium.WebDriver driver) -
initialize
public void initialize(org.openqa.selenium.WebDriver driver, boolean isSilent) -
initialize
-
performTouchAction
-
performAlertAction
-
performElementAction
-
performBrowserAction
-
touch
-
alert
-
element
-
browser
-
and
Returns this instance to allow fluent (method-chaining) syntax between successive actions. Using.and()improves readability by making multi-step test sequences read like natural language.Example:
driver.element().type(searchBox, "query") .and().browser().captureScreenshot();- Returns:
- this
FluentWebDriverActioninstance, enabling continued method chaining
-