Skip to content

Instantly share code, notes, and snippets.

@creswick
Created January 10, 2012 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creswick/1591773 to your computer and use it in GitHub Desktop.
Save creswick/1591773 to your computer and use it in GitHub Desktop.
Selenium.runScript(String) throws exceptions if string contains \r
public class WebTest {
public static void main(String[] args) throws IOException {
WebDriver driver = new FirefoxDriver();
Selenium selenium = new WebDriverBackedSelenium(driver, "http://google.com");
selenium.runScript("/* line 1 \r\n line 2 */");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment