Package org.openqa.selenium.firefox

Examples of org.openqa.selenium.firefox.FirefoxDriver


    {
        this.executor = new XWikiExecutor(0);
        executor.start();

        // Use a wrapping driver to display more information when there are failures.
        this.driver = new XWikiWrappingDriver(new FirefoxDriver(), getUtil());

        // Wait when trying to find elements on the page till the timeout expires
        getUtil().setDriverImplicitWait(this.driver);
    }
View Full Code Here


  private static void initHtmlUnitDriver() {
    initDriver(new HtmlUnitDriver());
  }

  private static void initFirefoxDriver() {
    initDriver(new FirefoxDriver());
  }
View Full Code Here

  /** Initialized class properties before executing  this test class. */
  @BeforeClass
  public static void beforeClass(){
   
          driver = new FirefoxDriver();
  }
View Full Code Here

  private WebDriver driver;
  private String baseUrl;
  private StringBuffer verificationErrors = new StringBuffer();
  @Before
  public void setUp() throws Exception {
    driver = new FirefoxDriver();
    baseUrl = "http://localhost:8081";
    driver.get(baseUrl);
    driver.manage().timeouts().implicitlyWait(1, TimeUnit.SECONDS);
  }
View Full Code Here

  public void testGoogleSearch() {
    EventFiringWebDriver driverWithReporting;
    {
      // System.setProperty("webdriver.chrome.driver", "/opt/google/chrome/chrome");
      // WebDriver driver = new ChromeDriver();
      WebDriver driver = new FirefoxDriver();

      WebDriverEventListener loggingListener = new LoggingWebDriverEventListener(LOG_FILE_WRITER);;
      driverWithReporting = new EventFiringWebDriver(driver);
      driverWithReporting.register(loggingListener);
    }
View Full Code Here

public class GithubStepdefs {
  private WebDriver driver;

  @Given("^Eu estou no site \"([^\"]*)\"$")
  public void eu_estou_no_site(String site) throws Exception {
    driver = new FirefoxDriver();
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
    driver.get(site);
  }
View Full Code Here

    protected void setupLocalDriver(DesiredCapabilities desiredCapabilities) {
        WebDriver driver;
        if (BrowserUtil.isFirefox(desiredCapabilities)) {
            String firefoxPath = getProperty("firefox.path");
            if (firefoxPath != null) {
                driver = new FirefoxDriver(new FirefoxBinary(new File(
                        firefoxPath)), null);
            } else {
                driver = new FirefoxDriver();
            }
        } else if (BrowserUtil.isChrome(desiredCapabilities)) {
            String propertyName = "chrome.driver.path";
            String chromeDriverPath = getProperty(propertyName);
            if (chromeDriverPath == null) {
View Full Code Here

      java.io.File profileDir = new java.io.File(
          System.getProperty("wasavi.tests.firefox.profile_path"));
      FirefoxProfile p = new FirefoxProfile(profileDir);

      p.setPreference("general.useragent.locale", "en-US");
      driver = new FirefoxDriver(p);
    }

    return driver;
  }
View Full Code Here

        return new URI("http://localhost:10001/spring-selenium-test-1.0.0");
    }   
   
  @Bean(destroyMethod="quit")
  public FirefoxDriver getDrv() {
        return new FirefoxDriver();
    }
View Full Code Here

   */
  public static WebDriver createDriver(String driverName) {
    WebDriver driver = null;

    if (BrowserType.firefox.name().equals(driverName)) {
      driver = new FirefoxDriver();
    } else if (BrowserType.ie.name().equals(driverName)) {
      driver = new InternetExplorerDriver();
    } else if (BrowserType.chrome.name().equals(driverName)) {
      driver = new ChromeDriver();
    } else if (driverName.startsWith(BrowserType.remote.name())) {
View Full Code Here

TOP

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

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.