Package org.openqa.selenium.firefox

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


        assertThat(deserializedConfig, is(config));
    }

    @Test
    public void shouldCreateFirefox() throws Exception {
        FirefoxDriver mockFirefoxDriver = Mockito.mock(FirefoxDriver.class);
        whenNew(FirefoxDriver.class)
            .withParameterTypes(FirefoxBinary.class, FirefoxProfile.class, Capabilities.class)
            .withArguments(isA(FirefoxBinary.class), isA(FirefoxProfile.class), isA(Capabilities.class))
            .thenReturn(mockFirefoxDriver);

        final FirefoxDriver browser = config.createBrowser();

        assertThat(browser, is(mockFirefoxDriver));
        verifyNew(FirefoxDriver.class, times(1)).withArguments(isA(FirefoxBinary.class), isA(FirefoxProfile.class), isA(Capabilities.class));
    }
View Full Code Here


    {
      String optionValue = driverOptions.get(optionKey);
      profile.setPreference(optionKey, optionValue);
    }
   
    return new FirefoxDriver(profile);
  }
View Full Code Here

  public final static int TIMEOUT = 25; // seconds

  private WebDriver createDriver(Class<? extends WebDriver> driverClass) {
    WebDriver driver = null;
    if (driverClass.equals(FirefoxDriver.class)) {
      driver = new FirefoxDriver();

    } else if (driverClass.equals(ChromeDriver.class)) {
      String chromedriver = null;
      if (SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_LINUX) {
        chromedriver = "chromedriver";
View Full Code Here

    }
  }

  private void setup(Class<? extends WebDriver> driverClass) {
    if (driverClass.equals(FirefoxDriver.class)) {
      driver = new FirefoxDriver();

    } else if (driverClass.equals(ChromeDriver.class)) {
      String chromedriver = null;
      if (SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_LINUX) {
        chromedriver = "chromedriver";
View Full Code Here

          driver = new RemoteWebDriver(new URL("http://"
              + hostAddress + ":" + hubPort + "/wd/hub"),
              capabilities);
        } else {
          driver = new FirefoxDriver(profile);
        }

        if (!usePhysicalCam && video != null) {
          launchFakeCam();
        }
View Full Code Here

  private final static int TIMEOUT = 80; // seconds

  private void setup(Class<? extends WebDriver> driverClass) {
    if (driverClass.equals(FirefoxDriver.class)) {
      driver = new FirefoxDriver();

    } else if (driverClass.equals(ChromeDriver.class)) {
      String chromedriver = null;
      if (SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_LINUX) {
        chromedriver = "chromedriver";
View Full Code Here

        WebDriver driver;
        if (webdriverType.equals("chrome")) {
            driver = new ChromeDriver();
        } else if (webdriverType.equals("firefox")) {
            driver = new FirefoxDriver();
        } else {
            driver = new InternetExplorerDriver();
        }
        return driver;
    }
View Full Code Here

  @ClassRule
  public static final CrawljaxServerResource SERVER = new CrawljaxServerResource();

  @BeforeClass
  public static void setup() throws Exception {
    driver = new FirefoxDriver();
    LOG.debug("Starting selenium");
    selenium = new WebDriverBackedSelenium(driver, SERVER.getUrl());
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
  }
View Full Code Here

    }
    return new ChromeDriver(options);
  }

  protected WebDriver createFirefoxDriver() {
    return maximize(new FirefoxDriver());
  }
View Full Code Here

    if (stepIndex == -1) {
      log.debug("Starting test run.");
    }
    if (driver == null) {
      log.debug("Initialising FirefoxDriver.");
      driver = new FirefoxDriver();
    }
    log.debug("Running step " + (stepIndex + 2) + ":" +
        script.steps.get(stepIndex + 1).getClass().getSimpleName() + " step.");
    boolean result = false;
    try {
View Full Code Here

TOP

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

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.