public static By findByToBy(NgModel locator){ if (locator == null) return null; return getAttribute("ng-model", locator.value()); } public static By findByToBy(NgBinding locator){
public static By findByToBy(ByTitle locator){ if (locator == null) return null; return getAttribute("title", locator.value()); }
public static By findByToBy(Attribute locator){ if (locator == null) return null; return getAttribute(locator.name(), locator.value()); }
public static By findByToBy(ByType locator){ if (locator == null) return null; return getAttribute("type", locator.value()); }
public static By findByToBy(NgBinding locator){ if (locator == null) return null; return getAttribute("ng-binding", locator.value()); }
public static By findByToBy(NgRepeat locator){ if (locator == null) return null; return getAttribute("ng-repeat", locator.value()); }
public static By findByToBy(ByValue locator){ if (locator == null) return null; return getAttribute("value", locator.value()); }
/** * Click on Button marked with annotation @CancelButton or named "cancelButton" */ public void cancel() { getElementClass.getButton(CANCEL_BUTTON).click(); }
public static void fillLocator(FindBy value, Consumer<By> action) { By by = findByToBy(value); if (by != null) action.accept(by); }
public void setName(Field field) { name = WebAnnotationsUtil.getElementName(field); varName = field.getName(); } protected void initSubElements() {
@Override protected IBaseElement specificAction(IBaseElement instance, Field field, Object parent, Class<?> type) { BaseElement element = (BaseElement) instance; if (parent != null && type == null) { return element; } By frameBy = getFrame(field.getDeclaredAnnotation(Frame.class)); if (frameBy != null) { element.avatar.frameLocator = frameBy; } return element; }
public static By findByToBy(NgModel locator){ if (locator == null) return null; return getAttribute("ng-model", locator.value()); } public static By findByToBy(NgBinding locator){
/** * Click on Button marked with annotation @CloseButton or named "closeButton" */ public void close() { getElementClass.getButton(CLOSE_BUTTON).click(); }
public static void fillLocator(FindBy value, Consumer<By> action) { By by = findByToBy(value); if (by != null) action.accept(by); }
public void setName(Field field) { name = WebAnnotationsUtil.getElementName(field); varName = field.getName(); } protected void initSubElements() {
/** * Click on Button marked with annotation @OkButton or named "okButton" */ public void ok() { getElementClass.getButton(OK_BUTTON).click(); }
/** * Click on Button marked with annotation @CloseButton or named "closeButton" */ public void close() { getElementClass.getButton(CLOSE_BUTTON).click(); }
/** * Click on Button marked with annotation @CancelButton or named "cancelButton" */ public void cancel() { getElementClass.getButton(CANCEL_BUTTON).click(); }
protected void closeAction() { getElementClass.getButton(CLOSE_BUTTON).click(); } /**
/** * Click on Button marked with annotation @OkButton or named "okButton" */ public void ok() { getElementClass.getButton(OK_BUTTON).click(); }