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
Namespace: CefSharpCefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)
Syntaxpublic static Task<JavascriptResponse> EvaluateScriptAsync( this IBrowser browser, string script, TimeSpan? timeout = null, bool useImmediatelyInvokedFuncExpression = false )
public: [ExtensionAttribute] static Task<JavascriptResponse^>^ EvaluateScriptAsync( IBrowser^ browser, String^ script, Nullable<TimeSpan> timeout = nullptr, bool useImmediatelyInvokedFuncExpression = false )Parameters
Type:
TaskJavascriptResponsethat can be awaited to obtain the result of the script execution.
Usage NoteIn Visual Basic and C#, you can call this method as an instance method on any object of type
IBrowser. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)or
Extension Methods (C# Programming Guide).
Exceptions See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4