public static CompleteItem itemCalled(String itemName) { return instrumented(CompleteItem.class, itemName); } public static CompleteAllItems allItems() {
public static OpenTheApplication onTheHomePage() { return instrumented(OpenTheApplication.class); } @Step("{0} opens the application on the home page")
public EnterValue into(By... locators) { return instrumented(SendKeysIntoBy.class, theText, locators); } }
public static Interaction over(Target target) { return instrumented(HoverOverTarget.class, target); }
public EnterValue into(Target target) { return instrumented(SendKeysIntoTarget.class, theText, target); }
public static OpenUrl url(String targetUrl) { return instrumented(OpenUrl.class, targetUrl); }
public Interaction the(PageObject targetPage) { return instrumented(OpenPage.class, targetPage); }
public Performable into(WebElementFacade element) { return instrumented(HitElement.class, keys, element); } public Performable into(By... locators) {
public static Interaction angularRequestsHaveFinished() { return instrumented(WaitUntilAngularIsReady.class); } }
public Performable into(Target target) { return instrumented(HitTarget.class, keys, target); } public Performable into(WebElementFacade element) {
public EnterValue into(By... locators) { return instrumented(EnterValueIntoBy.class, theText, locators); } }
public TypeValue into(By... locators) { return instrumented(TypeValueIntoBy.class, theText, locators); } }
public Performable from(WebElementFacade element) { switch (strategy) { case ByValue: return instrumented(SelectByValueFromElement.class, element, theValue); case ByVisibleText: return instrumented(SelectByVisibleTextFromElement.class, element, theText); case ByIndex: return instrumented(SelectByIndexFromElement.class, element, indexValue); } throw new IllegalStateException("Unknown select strategy " + strategy); }
public Performable from(Target target) { switch (strategy) { case ByValue: return instrumented(SelectByValueFromTarget.class, target, theValue); case ByVisibleText: return instrumented(SelectByVisibleTextFromTarget.class, target, theText); case ByIndex: return instrumented(SelectByIndexFromTarget.class, target, indexValue); } throw new IllegalStateException("Unknown select strategy " + strategy); }
public Performable from(Target target) { switch (strategy) { case ByValue: return instrumented(DeselectByValueFromTarget.class, target, theText); case ByVisibleText: return instrumented(DeselectByVisibleTextFromTarget.class, target, theText); case ByIndex: return instrumented(DeselectByIndexFromTarget.class, target, indexValue); } throw new IllegalStateException("Unknown select strategy " + strategy); }
public Performable from(By... locators) { switch (strategy) { case ByValue: return instrumented(SelectByValueFromBy.class, theValue, locators); case ByVisibleText: return instrumented(SelectByVisibleTextFromBy.class, theText, locators); case ByIndex: return instrumented(SelectByIndexFromBy.class, indexValue, locators); } throw new IllegalStateException("Unknown select strategy " + strategy); }
public static Performable times(int quantity) { return instrumented(BuyGizmos.class, quantity); } }
public static Performable times(int quantity) { return instrumented(OrderGizmos.class, quantity); } }
public static Interaction over(String cssOrXpathForElement) { return instrumented(HoverOverTarget.class, Target.the(cssOrXpathForElement).locatedBy(cssOrXpathForElement)); }
public static WaitUntilTargetIsReady the(By byLocator, Matcher<WebElementState> expectedState) { return instrumented(WaitUntilTargetIsReady.class, Target.the(byLocator.toString()).located(byLocator), expectedState); }