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