Webview2 Javascript Frame text

markus.wolf-6704 Wolf 1 Reputation point
2021-06-22T15:21:29.683+00:00

Hi,

I would like to read some text from a website with webview2.

In the devtools console I have to change the javascript context:
108226-image.png

Then it is possible to use
document.documentElement.innerText

How it is possible to change the javascript context in webview2 to get the text?
Thanks.

Developer technologies Windows Forms
Developer technologies C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.