Edge driver unable to connect to WebView2 instance #4467
Unanswered
JamesHMcKay
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Are you still facing this issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We have been using WebView2 in a C++ application and performing automated tests using the Edge Driver via Selenium for the last year. However, in recent versions of the Edge runtime the driver is unable to connect.
I have created a minimal example that reproduces the issue.
Environment
The environment variable
WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS
is set to the value--enable-features=msEdgeDevToolsWdpRemoteDebugging --remote-debugging-port=9224
.Minimal example code
The following is the Win32 C++ app that reproduces this, it is a very stripped down version from the official tutorial.
The Python code to load up the driver that gives us the error is:
The error message
If I shut down the webview2 application then the script runs without error, so we can use it to control the Edge browser for example. The issue seems to only occur if a webview2 application is running.
Question
This setup used to work well with older versions and is still working on our CI where we have version 119 of the runtime. So we are hoping to understand if there has been a change in the interface that we need to account for in the way we are doing this, or if there is a bug in the latest versions of the webview2 runtime that could be causing this?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions