Package org.openqa.selenium.firefox

Examples of org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor


  private Server server;

  @Before
  public void setUp() throws Exception {
    server = CustomFieldApplication.startInEmbeddedJetty();
    driver = new FirefoxDriver();
    baseUrl = "http://localhost:8888/";
    driver.manage().timeouts().implicitlyWait(1, TimeUnit.SECONDS);
  }
View Full Code Here


     * @see org.jboss.arquillian.drone.spi.Instantiator#createInstance(org.jboss.arquillian.drone.spi.DroneConfiguration)
     */
    @Override
    public FirefoxDriver createInstance(TypedWebDriverConfiguration<FirefoxDriverConfiguration> configuration) {

        FirefoxDriver driver = super.createInstance(configuration);
        FirefoxDriver proxy = GrapheneContext.getProxyForDriver(FirefoxDriver.class);
        GrapheneContext.set(driver);
        return proxy;
    }
View Full Code Here

    @Override
    @Before
    public void setUp() throws Exception {
        super.setUp();

        seleniumDriver = new FirefoxDriver();
        selenium = new WebDriverBackedSelenium(seleniumDriver, BASE_URL);

        selenium.open("/syncope-console/");
        selenium.type("name=userId", ADMIN);
        selenium.type("name=password", PASSWORD);
View Full Code Here

public class EditProfileTestITCase extends AbstractTest {

    @Override
    @Before
    public void setUp() throws Exception {
        seleniumDriver = new FirefoxDriver();
        selenium = new WebDriverBackedSelenium(seleniumDriver, BASE_URL);

        selenium.open("/syncope-console/");
    }
View Full Code Here

        throw new RuntimeException(e);
      }
    } else if ("chrome".equals(browserType)) {
      return new ChromeDriver(dc);
    } else if ("firefox".equals(browserType)) {
      return new FirefoxDriver();
    } else if ("safari".equals(browserType)) {
      // TODO(felix8a): local safari doesn't work yet
      return new SafariDriver();
    } else {
      throw new RuntimeException("No local driver for browser type '"
View Full Code Here

  // SELENIUM 1
  @Override
  public void init(String baseurl) {
    logger.info(">> initRC... ");
    this.baseurl = baseurl;
    driver = new FirefoxDriver();
    driver.get(baseurl);
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
    waiting(2000);
    selenium = new WebDriverBackedSelenium(driver, baseurl);
View Full Code Here

  // SELENIUM 2
  public void init(String baseurl) {
    logger.info(name + " >> initWebDriver... ");
    this.baseurl = baseurl;
    driver = new FirefoxDriver();
    driver.get(baseurl);
  }
View Full Code Here

    this.name = name;
  }

  private void start(String baseurl) {
    logger.info(name + " >> Init WebDriver... ");
    driver = new FirefoxDriver();
    driver.get(baseurl);
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
    waitingRandomSec(20);
  }
View Full Code Here

      desiredCapabilities.setCapability(HtmlUnitDriver.INVALIDSELECTIONERROR, true);
      desiredCapabilities.setCapability(HtmlUnitDriver.INVALIDXPATHERROR, false);
      desiredCapabilities.setJavascriptEnabled(true);
      return new HtmlUnitDriver(desiredCapabilities);
    } else if (FIREFOX.equalsIgnoreCase(browser)) {
      return maximize(new FirefoxDriver());
    } else if (OPERA.equalsIgnoreCase(browser)) {
      return createInstanceOf("com.opera.core.systems.OperaDriver");
    } else if (PHANTOMJS.equals(browser)) {
      DesiredCapabilities capabilities = new DesiredCapabilities();
      capabilities.setJavascriptEnabled(true);
View Full Code Here

      profile.setPreference("network.proxy.type", configuration
              .getProxyConfiguration().getType().toInt());
      /* use proxy for everything, including localhost */
      profile.setPreference("network.proxy.no_proxies_on", "");

      return WebDriverBackedEmbeddedBrowser.withDriver(new FirefoxDriver(profile),
              filterAttributes, crawlWaitReload, crawlWaitEvent);
    }

    return WebDriverBackedEmbeddedBrowser.withDriver(new FirefoxDriver(),
            filterAttributes, crawlWaitEvent, crawlWaitReload);
  }
View Full Code Here

TOP

Related Classes of org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor

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.