com.shaft.gui.internal.locator.ShadowLocatorBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SHAFT_ENGINE Show documentation
Show all versions of SHAFT_ENGINE Show documentation
SHAFT is a unified test automation engine. Powered by best-in-class frameworks, SHAFT provides a
wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve.
Stop reinventing the wheel. Upgrade now!
package com.shaft.gui.internal.locator;
import org.openqa.selenium.By;
public class ShadowLocatorBuilder {
public static By shadowDomLocator;
public static By cssSelector;
public ShadowLocatorBuilder(By shadowDomLocator, By cssSelector) {
ShadowLocatorBuilder.shadowDomLocator = shadowDomLocator;
ShadowLocatorBuilder.cssSelector = cssSelector;
}
public By build() {
// this is returned as a placeholder, the real locator is built when the action is being performed and currently supports a limited set of element actions
return cssSelector;
}
}