Package net.mindengine.galen.suite.actions

Examples of net.mindengine.galen.suite.actions.GalenPageActionRunJavascript


    public static GalenPageActionCheck check(List<String> specFilePaths) {
        return new GalenPageActionCheck().withSpecs(specFilePaths);
    }

    public static GalenPageActionRunJavascript runJavascript(String javascriptPath) {
        return new GalenPageActionRunJavascript(javascriptPath);
    }
View Full Code Here


        browser.load(TEST_URL);
       
        WebElement element = driver.findElement(By.id("search-query"));
        assertThat("Search input should not contain any text yet", element.getAttribute("value"), is(""));
       
        GalenPageActionRunJavascript action = new GalenPageActionRunJavascript(getClass().getResource("/scripts/to-run-1.js").getFile());
        action.setJsonArguments("{prefix: 'This was'}");
       
        action.execute(new TestReport(), browser, new GalenPageTest(), null);
       
        assertThat("Search input should contain text", element.getAttribute("value"), is("This was typed by a selenium from javascript text from imported script"));
        browser.quit();
    }
View Full Code Here

TOP

Related Classes of net.mindengine.galen.suite.actions.GalenPageActionRunJavascript

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.