ChromiumWebBrowserWaitForNavigationAsync Method |
Namespace: CefSharp.WinForms
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));