Replies: 3 comments
-
For now, I ended up doing the following. Better alternatives are welcome:
|
Beta Was this translation helpful? Give feedback.
-
Also, this is very flaky. I get an excepton in Microsoft.Web.WebView2.Core.CoreWebView2
|
Beta Was this translation helpful? Give feedback.
-
The API is based on puppeteer-sharp, so you achieve many of the things in the same way. You can type into a inputbox to simulate user input. //Type text in an input field
await element.TypeAsync("Welcome to my Website!");
//Scroll Element into View (if needed)
//Can optional specify a Rect to be scrolled into view, relative to the node's border box,
//in CSS pixels. When omitted, center of the node will be used
await element.ScrollIntoViewIfNeededAsync();
//Click The element
await element.ClickAsync();
Make sure you have only a single context at a time. See #11 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hi,
I change the input text programmatically like
But unfortunately this does not trigger a change event
Beta Was this translation helpful? Give feedback.
All reactions