Replies: 1 comment
-
Hey @sensrsc - If you are looking to automate the WebView2 for testing purposes, you can look into using WebDriver: If you are looking for true unit-testing, then I would assume you need to do some mocking of the WebView2 class. |
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
-
Hi Team,
We are currently developing our application based on WPF and using Webview2 for some automated web page navigation and interaction. We can successfully implement the feature by tutorials from Webview2 samples using
ExecuteScriptAsync
and corresponding lifecycle events, but now we are struggling on how to add unittests for implemented Webview Class.Is there any tutorial or related article that helps on Webview2 application unittesting? or any suggestion on how can we get it started?
Here are some basic environment information,
WPF based on .NETCore 5.0
Webview2
And we are currently using MSTEST as our unittesting library, any suggestion on unittesting libraries?
Suggestions and feedbacks are welcomed! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions