ChromiumWebBrowserWaitForNavigationAsync Method |
Namespace: CefSharp.Wpf
public Task<WaitForNavigationAsyncResponse> WaitForNavigationAsync( TimeSpan? timeout = null, CancellationToken cancellationToken = default )
string script = "document.getElementsByTagName('a')[0].click();"; await Task.WhenAll( chromiumWebBrowser.WaitForNavigationAsync(), chromiumWebBrowser.EvaluateScriptAsync(jsScript3));