Examples of openBrowser()


Examples of net.mindengine.galen.browser.JsBrowserFactory.openBrowser()

    @Test
    public void shouldProvide_webDriver_withJsFactory() {
        JsBrowserFactory browserFactory = new JsBrowserFactory(getClass().getResource("/browser/js-driver-init.js").getFile(), new String[]{"http://example.com", "640x480"});
       
        SeleniumBrowser browser = (SeleniumBrowser)browserFactory.openBrowser();
       
        DummyDriver driver = (DummyDriver)browser.getDriver();
       
        Assert.assertEquals("http://example.com", driver.getCurrentUrl());
    }
View Full Code Here

Examples of net.mindengine.galen.browser.JsBrowserFactory.openBrowser()

   
    @Test
    public void shouldProvide_browser_withJsFactory() {
        JsBrowserFactory browserFactory = new JsBrowserFactory(getClass().getResource("/browser/js-browser-init.js").getFile(), new String[]{"http://example2.com"});
       
        MockedBrowser browser = (MockedBrowser)browserFactory.openBrowser();
        Assert.assertEquals("http://example2.com", browser.getUrl());
        Assert.assertEquals(new Dimension(320, 240), browser.getScreenSize());
    }
}
View Full Code Here

Examples of net.mindengine.galen.browser.SeleniumBrowserFactory.openBrowser()

        }
    }

    private void performPageDump(GalenArguments arguments) throws Exception {
        SeleniumBrowserFactory browserFactory = new SeleniumBrowserFactory();
        Browser browser = browserFactory.openBrowser();

        try {

            if (arguments.getUrl() == null || arguments.getUrl().isEmpty()) {
                throw new SyntaxException("--url parameter is not defined");
View Full Code Here

Examples of net.mindengine.galen.browser.SeleniumGridBrowserFactory.openBrowser()

       
        if (desiredCapabilities != null) {
            factory.setDesiredCapabilites(desiredCapabilities);
        }
       
        WebDriver driver = ((SeleniumBrowser)factory.openBrowser()).getDriver();
       
        GalenUtils.resizeDriver(driver, size);
        return driver;
    }
   
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.