Click or drag to resize

WebBrowserExtensionsEvaluateScriptAsPromiseAsync Method

Version 111.2.70
Overload List
  NameDescription
Public methodStatic memberEvaluateScriptAsPromiseAsync(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 methodStatic memberEvaluateScriptAsPromiseAsync(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 methodStatic memberEvaluateScriptAsPromiseAsync(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