Click or drag to resize

WebBrowserExtensionsEvaluateScriptAsPromiseAsync Method

Version 85.3.121
Overload List
  NameDescription
Public methodStatic memberEvaluateScriptAsPromiseAsync(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.
Public methodStatic memberEvaluateScriptAsPromiseAsync(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.
Top
See Also