UI Testing Blazor Hybrid for Windows #22200
Replies: 2 comments 3 replies
-
Did you ever get this solved? I also have this similar question |
Beta Was this translation helpful? Give feedback.
-
This is important and should be voted higher. |
Beta Was this translation helpful? Give feedback.
-
I'm working on a Blazor Hybrid app that will run Android, iOS, Mac, and Windows. I want to add UI testing to the process. Current recommendation is to use Appium. Appium works for Maui for Windows but not Blazor Hybrid for Windows because Appium relies on the WinDriver and you need to switch to the web context but that isn't supported. Next plan, act like it's a UWP app that has a WebView2 in it and connect over the debugger URL. After about a day of trying, this has failed too.
https://learn.microsoft.com/en-us/microsoft-edge/webview2/how-to/webdriver#step-4b-attaching-microsoft-edge-webdriver-to-a-running-webview2-app
Setting
Environment.SetEnvironmentVariable("WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS", "--enable-features=msEdgeDevToolsWdpRemoteDebugging");
does not seem to do much before the Maui app starts on windows.This throws
OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:57914/session timed out after 60 seconds.
which doesn't make sense because thewebSocketDebuggerUrl
is set tows://localhost:50080
and may just be some bug on the EdgeDriver side?I'm stuck here and would appreciate the communities help or know if this is something on the roadmap. All the UI testing Appium examples are MAUI but not Hybrid apps and searching has not brought up much help in this.
Beta Was this translation helpful? Give feedback.
All reactions