I want to know if I can use WebView2 to browse some web page, and find the links from DOM elements.
For example, I can use Edge browser to visit this web page:
https://github.com/search?q=webview2
Then from the search results returned, I can see a lot of web links.
At least some of them can be retrieved by JavaScript from Developer Tools, like this:
var links = document.getElementsByClassName('v-align-middle');
I want to know if I can run such simple JavaScript from the web page:
https://github.com/search?q=webview2
to get all the web URLs (href) from the DOM elements.
I searched around, I can’t find any helpful code example. All other codes didn’t solve my problem.
Please advise,