Class SynchronizationManager
java.lang.Object
com.shaft.driver.internal.DriverFactory.SynchronizationManager
Builds configured
FluentWait instances used by SHAFT element actions.
Thread safety: instances are stateful per driver session and should not be shared across different WebDriver sessions.
-
Constructor Summary
ConstructorsConstructorDescriptionSynchronizationManager(org.openqa.selenium.WebDriver driver) Creates a synchronization manager bound to a specific driver session. -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> Creates a fluent wait using default expected exceptions.org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> fluentWait(boolean isValidToCheckForVisibility) Creates a fluent wait and optionally includes visibility-related exceptions.
-
Constructor Details
-
SynchronizationManager
public SynchronizationManager(org.openqa.selenium.WebDriver driver) Creates a synchronization manager bound to a specific driver session.- Parameters:
driver- the targetWebDriverinstance
-
-
Method Details
-
fluentWait
public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> fluentWait()Creates a fluent wait using default expected exceptions.- Returns:
- a configured
FluentWaitinstance
-
fluentWait
public org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver> fluentWait(boolean isValidToCheckForVisibility) Creates a fluent wait and optionally includes visibility-related exceptions.- Parameters:
isValidToCheckForVisibility-trueto include visibility exceptions,falseotherwise- Returns:
- a configured
FluentWaitinstance
-