Package org.openqa.selenium.support.pagefactory

Examples of org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory


    }

    public BaseElement()
    {
        ElementLocatorFactory finder =
            new AjaxElementLocatorFactory(getDriver().getWrappedDriver(), getUtil().getTimeout());
        PageFactory.initElements(finder, this);
    }
View Full Code Here


  {
    this.driver = driver;
    this.timeOutInSeconds = timeOutInSeconds;
   
    ElementLocatorFactory finder =
      new AjaxElementLocatorFactory(driver, timeOutInSeconds);
    PageFactory.initElements( finder, this );
  }
View Full Code Here

public class AbstractPage {
    private final WebDriver driver;
    private final FluentWait<WebDriver> ajaxWaitForSec;

    public AbstractPage(final WebDriver driver) {
        PageFactory.initElements(new AjaxElementLocatorFactory(driver, 10),
                this);
        this.driver = driver;
        ajaxWaitForSec = WebElementUtil.waitForAMoment(driver);
        waitForPageSilence();
    }
View Full Code Here

    }

    public ElementLocatorFactory getLocatorFor(WebDriver driver) {
        String locatorType = ThucydidesSystemProperty.THUCYDIDES_LOCATOR_FACTORY.from(environmentVariables,"SmartElementLocatorFactory");
        if (locatorType.equals("AjaxElementLocatorFactory")) {
            return new AjaxElementLocatorFactory(driver, timeoutInSeconds);
        } else if (locatorType.equals("DefaultElementLocatorFactory")) {
            return new DefaultElementLocatorFactory(driver);
        } else if (locatorType.equals("SmartElementLocatorFactory")){
          return new SmartElementLocatorFactory(driver, timeoutInSeconds);
        } else {
View Full Code Here

TOP

Related Classes of org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.