Share this page

RunJavaScript Method (IPage)
Runs the specified JavaScript code in the page's context and returns the result.
Overload List

Overload | Description
--- | ---
RunJavaScript<TResult>(String) | Runs the specified JavaScript code in the page's context and returns the result.
RunJavaScript(String) | Runs the specified JavaScript code in the page's context and returns the result.

Example

    // This example determines whether spell check is enabled using the JavaScript SpellCheck property.
    var performSpellCheck = browser.Page.RunJavaScript<bool>(@"document.querySelectorAll('.sbdd_b')[0].spellcheck");

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: