Examples of WebDriverBackedSelenium


Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

    public void hitButton(String id) {
        if (BrowserUtil.isPhantomJS(getDesiredCapabilities())) {
            driver.findElement(By.id(id)).click();
        } else {
            WebDriverBackedSelenium selenium = new WebDriverBackedSelenium(
                    driver, driver.getCurrentUrl());

            selenium.keyPress("id=" + id, "\\13");
        }
    }
View Full Code Here

Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

    @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);
        selenium.click("name=:submit");
View Full Code Here

Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

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

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

Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

  @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

Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

    }

    protected void setUp() throws Exception
    {
        WebDriver driver = new WebDriverFactory().createWebDriver(BROWSER_NAME_SYSTEM_PROPERTY);
        this.selenium = new WebDriverBackedSelenium(driver, BASE_URL);

        // Sets the Selenium object in all tests
        for (AbstractXWikiTestCase test : getTests(getTest())) {
            test.setSelenium(this.selenium);
        }
View Full Code Here

Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

    String url = setupJetty();
    LOG.info("Jetty started on {}", url);
    driver = new FirefoxDriver();
    LOG.debug("Starting selenium");
    selenium = new WebDriverBackedSelenium(driver, url);

    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
  }
View Full Code Here

Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

  @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

Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

    @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);
        selenium.click("name=:submit");
View Full Code Here

Examples of com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium

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

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

Examples of org.openqa.selenium.WebDriverBackedSelenium

    if (Config.inst().BROWSER.equals("htmlunit")) {
      System.out.println("Using HTMLUnit.");

      setDriver(new HtmlUnitDriver());
      selenium = new WebDriverBackedSelenium(getDriver(), Config.inst().TEAMMATES_URL);

    } else if (Config.inst().BROWSER.equals("firefox")) {
      System.out.println("Using Firefox.");
      setDriver(new FirefoxDriver());
      selenium = new WebDriverBackedSelenium(getDriver(), Config.inst().TEAMMATES_URL);

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

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

      // Use technique here:
      // http://code.google.com/p/selenium/wiki/ChromeDriver
      ChromeDriverService service = startChromeDriverService();
      setDriver(new RemoteWebDriver(service.getUrl(), DesiredCapabilities.chrome()));

      System.out.println(getDriver().toString());
      selenium = new WebDriverBackedSelenium(getDriver(), Config.inst().TEAMMATES_URL);

      /*
       * Chrome hack. Currently Chrome doesn't support confirm() yet. http://code.google.com/p/selenium/issues/detail?id=27
       */
      JavascriptExecutor js = (JavascriptExecutor) getDriver();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.