Class SynchronizationManager

java.lang.Object
com.shaft.driver.internal.DriverFactory.SynchronizationManager

public class SynchronizationManager extends Object
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

    Constructors
    Constructor
    Description
    SynchronizationManager(org.openqa.selenium.WebDriver driver)
    Creates a synchronization manager bound to a specific driver session.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SynchronizationManager

      public SynchronizationManager(org.openqa.selenium.WebDriver driver)
      Creates a synchronization manager bound to a specific driver session.
      Parameters:
      driver - the target WebDriver instance
  • 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 FluentWait instance
    • 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 - true to include visibility exceptions, false otherwise
      Returns:
      a configured FluentWait instance