Replies: 3 comments 1 reply
-
我也有这个需求,自动化测试时需要启用参数--remote-debugging-port I also have this requirement, which is to enable the parameter ‘--remote-debugging-port’ during automated testing |
Beta Was this translation helpful? Give feedback.
-
可以看到,python语言的webview都是可以指定浏览器启动参数,也可以指定远程调试参数:--remote-debugging-port |
Beta Was this translation helpful? Give feedback.
-
I'm the maintainer of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m currently researching options for E2E testing of a Wails v2 desktop app using Playwright or Selenium, which rely on CDP (Chrome DevTools Protocol) for WebView2 automation.
I understand that Wails uses WebView2 internally, and CDP can be enabled via the
--remote-debugging-port=9222
flag. (playwright doc)However:
WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS
env variable has no effect when launching the app.Questions:
• Is there a documented or recommended way to enable CDP (--remote-debugging-port) for Wails production builds?
• Are there plans to support this as a first-class feature for E2E testing?
Beta Was this translation helpful? Give feedback.
All reactions