WebBrowserExtensionsEvaluateScriptAsPromiseAsync Method |
Name | Description | |
---|---|---|
EvaluateScriptAsPromiseAsync(IFrame, String, NullableTimeSpan) |
Evaluate some Javascript code 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.
| |
EvaluateScriptAsPromiseAsync(IWebBrowser, String, NullableTimeSpan) |
Evaluate some Javascript code 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.
|