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();
}