Click or drag to resize

WebBrowserExtensionsEvaluateScriptAsPromiseAsync Method

Version 130.1.90
Overload List
 NameDescription
Public Extension MethodEvaluateScriptAsPromiseAsync(IBrowser, String, NullableTimeSpan) Evaluate Javascript in the context of this Browsers Main Frame. The script will be executed asynchronously and the method returns a Task encapsulating the response from the Javascript. The result of the script execution in javascript is Promise.resolve so even no promise values will be treated as a promise. Your javascript should return a value. The javascript will be wrapped in an Immediately Invoked Function Expression. When the promise either trigger then/catch this returned Task will be completed.
Public Extension MethodEvaluateScriptAsPromiseAsync(IWebBrowser, String, NullableTimeSpan) Evaluate Javascript in the context of the MainFrame of the ChromiumWebBrowser. The script will be executed asynchronously and the method returns a Task encapsulating the response from the Javascript. The result of the script execution in javascript is Promise.resolve so even no promise values will be treated as a promise. Your javascript should return a value. The javascript will be wrapped in an Immediately Invoked Function Expression. When the promise either trigger then/catch this returned Task will be completed.
Public Extension MethodEvaluateScriptAsPromiseAsync(IFrame, String, NullableTimeSpan, String) Evaluate Javascript in the context of this Browsers Main Frame. The script will be executed asynchronously and the method returns a Task encapsulating the response from the Javascript. The result of the script execution in javascript is Promise.resolve so even no promise values will be treated as a promise. Your javascript should return a value. The javascript will be wrapped in an Immediately Invoked Function Expression. When the promise either trigger then/catch this returned Task will be completed.
Top
See Also