Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27468

wait for a page to load (webview2)

$
0
0
Good morning all,

Excuse my language, I don't speak fluently.

I have a problem in my code. I connect to a site with webview2. I have to do an action after the page loads but I can't wait for it to load.

As a result, the action is done before loading and therefore does not work.

Could you tell me how to wait for my page to load after the connection click with this code:
Code:

Dim name As String = Await WebView21.ExecuteScriptAsync("document.getElementsByClassName('btn btn-primary btn-block btn-large login-button')[0].click();")
Thank you !

Viewing all articles
Browse latest Browse all 27468

Trending Articles