Java 类org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory 实例源码

项目:SeleniumCucumber    文件:PageBase.java   
public PageBase(WebDriver driver) {
    if(driver == null)
        throw new IllegalArgumentException("Driver object is null");

    PageFactory.initElements(new AjaxElementLocatorFactory(driver, 10), this);
    this.driver = driver;
}
项目:wiselenium    文件:WisePageFactory.java   
private static FieldDecorator initDecorator(SearchContext searchContext, Field field) {
    FieldDecorator decorator;
    AjaxElement ajaxElementAnnotation = field.getAnnotation(AjaxElement.class);
    if (ajaxElementAnnotation != null) {
        int timeout = ajaxElementAnnotation.timeOutInSeconds();
        decorator = new WiseDecorator(new AjaxElementLocatorFactory(searchContext, timeout));
    } else {
        decorator = new WiseDecorator(new DefaultElementLocatorFactory(searchContext));
    }
    return decorator;
}
项目:AutomationFrameworkTPG    文件:BasePage.java   
protected BasePage(WebDriver driver) {
    this.driver = driver;
    LOGGER.info("Navigating to [{}]...", this.getClass().getSimpleName());
    PageFactory.initElements(new AjaxElementLocatorFactory(driver, TimeoutValue), this);       
}
项目:plugin-datasource    文件:NewDatasourceWizard.java   
public String clickOnNewDatasourceAction() {
    mainPage.getMainMenuAction("Datasource/New Datasource Connection").click();
    newDatasourceWizard = new NewDatasourceWizardPage(driver);
    PageFactory.initElements(new AjaxElementLocatorFactory(driver, 15), newDatasourceWizard);
    return "clicks";
}