Beispiel #1
0
/** Created by Oleh_Maksymuk on 11/23/2015. */
public class Buttons {

  private static WebDriver webDriver = Drivers.get();

  private static Button locate(By by) {
    return (Button) AbstractLocators.locate(Button.class, by);
  }

  public static Button byXpath(String xpath) {
    return locate(By.xpath(xpath));
  }

  public static Button byUIAutomator(String UIAutomator) {
    return locate(MobileBy.AndroidUIAutomator(UIAutomator));
  }
}