WebView2 Read Website in System.Windows.Forms.HtmlDocument variable #2492
Unanswered
Michael091971
asked this question in
Q&A
Replies: 1 comment
-
See #176 (comment) for an official response. You can use JavaScript or one of third party DOM libraries. See |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the Webbrowser Control there is the possibility to save the Website in the System.Windows.Forms.HtmlDocument variable. After that it is possible to search in the html-Variable. What is the function in WebView2 that makes the same?
Private Sub WebBrowser1_Navigated(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatedEventArgs) Handles WebBrowser1.Navigated
Dim document As System.Windows.Forms.HtmlDocument = WebBrowser1.Document
cUrl_Kundendisplay = document.All("Kundendisplaylink").GetAttribute("value") ' Search for the HTML-Var "Kundendisplaylink"
Private Async Sub WebView_NavigationCompleted(sender As Object, e As CoreWebView2NavigationCompletedEventArgs) Handles WebView.NavigationCompleted
Dim document As System.Windows.Forms.HtmlDocument
cUrl_Kundendisplay = ???
Kundendisplay.WebView2_2.Source = New Uri(cUrl_Kundendisplay, UriKind.Absolute)
Beta Was this translation helpful? Give feedback.
All reactions