Hi @E, Arun,
The best practice is only choosing one of the options:
- Letting Microsoft Edge WebDriver launch your WebView2 app
- Attaching Microsoft Edge WebDriver to a running WebView2 app
Multiple Edge driver instances may cause conflicts. If you have to do so, after your first edge driver launches the desktop app from the specific link, just kill the first edge driver instance (Quit function may do this job). Only when the first edge driver has been killed should you try to attach another edge driver to the app.
Theoretically it should work. But if it does not work or it is a bit complicated in your scenario, you should just launch the desktop app by other means (or even by Chrome driver), and then attach Edge driver to the app, which has been proved to work.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Shijie Li