Executes the specified JavaScript code within the page. The usage would be similar to what can be achieved to execute JavaScript in the current page by entering "javascript:...some JS code..." in the URL field of a native browser. Note: the provided code won't be executed if JavaScr
(final String sourceCode)
| 920 | * the previous page) and a JavaScript result object |
| 921 | */ |
| 922 | public ScriptResult executeJavaScript(final String sourceCode) { |
| 923 | return executeJavaScript(sourceCode, "injected script", 1); |
| 924 | } |
| 925 | |
| 926 | /** |
| 927 | * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br> |