Skip to content

Instantly share code, notes, and snippets.

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 LenarBad/d6cb343e1c6df1a54161189e52cd8972 to your computer and use it in GitHub Desktop.
Save LenarBad/d6cb343e1c6df1a54161189e52cd8972 to your computer and use it in GitHub Desktop.
String script = "arguments[0].innerHTML='" + StringEscapeUtils.escapeEcmaScript(innerHtml) + "'";
((JavascriptExecutor) driver).executeScript(script, webElement);
@LenarBad
Copy link
Author

LenarBad commented May 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment