Selenium version 3.141 is no longer supported. If you use Selenium to automate Microsoft Edge, you must use Selenium 4.
You can refer to this doc to upgrade to Selenium 4: Upgrading from Selenium 3 to Selenium 4. And make sure the Edge WebDriver version matches your Edge browser version. Put the msedgedriver
executable folder to your PATH
environment variable.
For the detailed steps to automate Edge, you can also refer to this doc: Automate Microsoft Edge with WebDriver.
If the answer is the right solution, 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.
Regards,
Yu Zhou