session not created: DevToolsActivePort file doesn't exist

2024-02-09T18:37:58.35+00:00

Trying to connect with edge browser from excel using Selenium. It was working fine until new edge version was upgraded. But it is not working now, I am getting an error: session not created: DevToolsActivePort file doesn't exist.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,181 questions
{count} votes

Accepted answer
  1. ShiJieLi-MSFT 8,106 Reputation points Microsoft Vendor
    2024-02-13T08:03:20.71+00:00

    Hi @Rajgafoor Basheer, Mohamed SSSCCH-FO/ROP,

    Thanks for your code. However, I couldn't reproduce this issue. Everything works fine. Here're some possible solutions you can try:

    1. Make sure you are using the latest version of Microsoft Edge and Edge driver.
    2. Kill all the processes of Microsoft Edge before you run the code.
    3. Add Bot.AddArgument ("--disable-dev-shm-usage") Bot.AddArgument ("--no-sandbox") before Bot.Start "edge"
    4. VBA Selenium is using a much older version. If none of the above works for you, you can switch to latest Selenium 4 with other languages.

    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


0 additional answers

Sort by: Most helpful