ExecuteJavaScriptAsync

Parent Previous Next

ExecuteJavaScriptAsync

Description: the method executes JavaScript code and returns a string with the result of execution

Syntax: ExecuteJavaScriptAsync(string script)

Return value: string


Example:

string script = "(function(){ var element = document.getElementById('MyElement'); return element.innerText; }());";

string result = await tester.ExecuteJavaScriptAsync(script);

Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites