Package org.openqa.selenium.firefox

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


  private EmbeddedBrowser browser;

  @Before
  public void before() {
    browser = WebDriverBackedEmbeddedBrowser.withDriver(new FirefoxDriver(),
            ImmutableSortedSet.<String> of(), 200, 300);
    URL url = DomUtilsBrowserTest.class.getResource("/site/index.html");
    browser.goToUrl(url);
  }
View Full Code Here


        super(serverHost, serverPort, browserPath, browserUrl);
    }

    @Override
    public Selenium getSelenium() {
        WebDriver driver = new FirefoxDriver();
        return new WebDriverBasedSelenium(driver, "http://localhost:8080");
    }
View Full Code Here

    private WebDriver browser;

    @Before
    public void setup() {
        browser = new FirefoxDriver();
    }
View Full Code Here

  protected static final String DEFAULT_KWS_URL = "http://builds.kurento.org/release/stable/";

  @Before
  public void setup() {
    driver = new FirefoxDriver();
    serverAddress = KmfMediaApiProperties.getThriftKmfAddress().getHost();
    serverPort = KurentoServicesTestHelper.getAppHttpPort();

    createHtmlPages();
    KurentoServicesTestHelper.startHttpServer();
View Full Code Here

    }

    private WebDriver getDriver(BrowserType browserType) {
        switch (browserType) {
            case FIREFOX:
                return new FirefoxDriver();
            case IE:
                System.setProperty("webdriver.ie.driver", TEST_CLASSES_PATH + "//IEDriverServer.exe");
                return new InternetExplorerDriver();
            case GC:
                System.setProperty("webdriver.chrome.driver", TEST_CLASSES_PATH + "//chromedriver");
View Full Code Here

    } else if (Config.inst().BROWSER.equals("firefox")) {

      System.out.println("Using Firefox.");

      driver = new FirefoxDriver();
      selenium = new WebDriverBackedSelenium(driver, Config.inst().TEAMMATES_URL);

    } else if (Config.inst().BROWSER.equals("chrome")) {

      System.out.println("Using Chrome");
View Full Code Here

    protected ChromeDriver createChromeDriver() {
        return new ChromeDriver();
    }

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

          LOGGER.error("Could not load driver: " + e.getMessage(), e);
          throw new CrawljaxException(e);
        }

      default:
        browser = WebDriverBackedEmbeddedBrowser.withDriver(new FirefoxDriver(),
                filterAttributes, crawlWaitEvent, crawlWaitReload);
    }
    configuration.getPlugins().runOnBrowserCreatedPlugins(browser);
    return browser;
  }
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

      driver = new HtmlUnitDriver();
      ((HtmlUnitDriver) driver).setJavascriptEnabled(true);
    }

    if (FIREFOX.equals(driverName)) {
      driver = new FirefoxDriver();
    }

    if (IE.equals(driverName)) {
      driver = new InternetExplorerDriver();
    }
View Full Code Here

TOP

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

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.