Class ShadowLocatorBuilder
java.lang.Object
com.shaft.gui.internal.locator.ShadowLocatorBuilder
Builds shadow DOM locators by pairing a shadow host locator with a CSS selector
for elements inside the shadow root.
Thread safety: Uses ThreadLocal fields to isolate locator state per thread.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ThreadLocal<org.openqa.selenium.By> static ThreadLocal<org.openqa.selenium.By> -
Constructor Summary
ConstructorsConstructorDescriptionShadowLocatorBuilder(org.openqa.selenium.By shadowDomLocator, org.openqa.selenium.By cssSelector) -
Method Summary
-
Field Details
-
shadowDomLocator
-
cssSelector
-
-
Constructor Details
-
ShadowLocatorBuilder
public ShadowLocatorBuilder(org.openqa.selenium.By shadowDomLocator, org.openqa.selenium.By cssSelector)
-
-
Method Details
-
cleanup
public static void cleanup()Removes all thread-local state held by this builder, preventing memory leaks in long-running or parallel test environments. -
build
public org.openqa.selenium.By build()
-