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... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: