RunJavaScript Method (IPage)
Runs the specified JavaScript code in the page's context and returns the result.
Overload List
OverloadDescription
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");