Examples of WebDriverFactory


Examples of net.thucydides.core.webdriver.WebDriverFactory

    @Test
    public void should_honor_chromdriver_bin_path_in_environment_properties() {
        environmentVariables.setProperty("webdriver.chrome.driver","/path/to/chromedriver/bin");
        try {
            WebDriver webdriver = new WebDriverFactory(environmentVariables).newInstanceOf(SupportedWebDriver.CHROME);
            webdriver.get("http://www.google.com");
        } catch (UnsupportedDriverException couldNotFindDriver) {
            assertThat(couldNotFindDriver.getCause().getMessage()).contains("The driver executable does not exist: /path/to/chromedriver/bin");
        }
    }
View Full Code Here

Examples of net.thucydides.core.webdriver.WebDriverFactory

    static WebDriver localDirver;
    static StaticSitePageWithFacades page;

    @BeforeClass
    public static void openStaticPage() {
        localDirver = new WebDriverFacade(HtmlUnitDriver.class, new WebDriverFactory());
        page = new StaticSitePageWithFacades(localDirver, 1);
        page.setWaitForTimeout(750);
        page.open();
    }
View Full Code Here

Examples of net.thucydides.core.webdriver.WebDriverFactory

    static WebDriver localDriver;
    StaticSitePage page;

    @BeforeClass
    public static void openDriver() {
        localDriver = new WebDriverFacade(HtmlUnitDriver.class, new WebDriverFactory());
    }
View Full Code Here

Examples of net.thucydides.core.webdriver.WebDriverFactory

    static WebDriver localDriver;
    static StaticSitePage page;

    @BeforeClass
    public static void openStaticPage() {
        localDriver = new WebDriverFacade(HtmlUnitDriver.class, new WebDriverFactory());
        page = new StaticSitePage(localDriver, 1);
        page.open();
    }
View Full Code Here

Examples of net.thucydides.core.webdriver.WebDriverFactory

    WebDriverFactory factory;

    @Before
    public void setupFactory() {
        environmentVariables = new MockEnvironmentVariables();
        factory = new WebDriverFactory(environmentVariables);
    }
View Full Code Here

Examples of net.thucydides.core.webdriver.WebDriverFactory

    static WebDriver driver;
    static StaticSitePage page;

    @BeforeClass
    public static void openStaticPage() {
        driver = new WebDriverFacade(PhantomJSDriver.class, new WebDriverFactory());
        page = new StaticSitePage(driver, 1);
        page.setWaitForTimeout(500);
        page.open();
    }
View Full Code Here

Examples of net.thucydides.core.webdriver.WebDriverFactory


        };

        environmentVariables = Injectors.getInjector().getProvider(EnvironmentVariables.class).get() ;
        webDriverFactory = new WebDriverFactory(webdriverInstanceFactory, environmentVariables);
        StepEventBus.getEventBus().clear();

    }
View Full Code Here

Examples of net.thucydides.core.webdriver.WebDriverFactory

    @Test
    public void result_is_a_pass_despite_initial_failure() throws Exception {
        environmentVariables.setProperty(MAX_RETRIES, "5");
        ThucydidesRunner runner = new ThucydidesRunner(FailThenPassSample.class,
                                                       new WebDriverFactory(environmentVariables),
                                                       new SystemPropertiesConfiguration(environmentVariables));

        CapturingNotifier notifier = new CapturingNotifier();
        runner.run(notifier);
        List<TestOutcome> outcomes = runner.getTestOutcomes();
View Full Code Here

Examples of net.thucydides.core.webdriver.WebDriverFactory

        environmentVariables = new MockEnvironmentVariables();
    }

    protected ThucydidesRunner getTestRunnerUsing(Class<?> testClass) throws InitializationError {
        Configuration configuration = new SystemPropertiesConfiguration(environmentVariables);
        WebDriverFactory factory = new WebDriverFactory(environmentVariables);
        return new ThucydidesRunner(testClass, factory, configuration);
    }
View Full Code Here

Examples of org.jboss.arquillian.drone.factory.WebDriverFactory

   @Test
   @SuppressWarnings("rawtypes")
   public void testPrecedence() throws Exception
   {
      Mockito.when(serviceLoader.all(Configurator.class)).thenReturn(Arrays.<Configurator> asList(new DefaultSeleniumFactory(), new WebDriverFactory(), new MockConfigurator()));

      manager.fire(new BeforeSuite());

      DroneRegistry registry = manager.getContext(SuiteContext.class).getObjectStore().get(DroneRegistry.class);
      Assert.assertNotNull("Drone registry was created in the context", registry);
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.