Which version of Edge and Edge WebDriver do you use? Which version of Selenium do you use?
You could try the following possible solutions:
- Make sure you are using the latest version of Microsoft Edge and Edge driver.
- Make sure you are using Selenium 4.
- Kill all the processes of Microsoft Edge in Task Manager before you run the code and test again.
- Add options like below:
edge_options = webdriver.EdgeOptions() edge_options.add_argument("no-sandbox") edge_options.add_argument("disable-dev-shm-usage") driver = webdriver.Edge(options = edge_options)
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,
Yu Zhou