Skip to content

ChromeDriver failing with invalid session id  #787

Description

@cseagul

Hi

I am trying to set up wallaby on my new linux computer but keep getting ** (RuntimeError) invalid session id every time I try to visit any site.

In the past I have always gotten this error when ChromeDriver and Chrome versions did not match - but now the versions are the same

$ chromedriver -v
ChromeDriver 127.0.6533.88 (a2d0cb026721e4644e489b8ebb07038ca4e4351c-refs/branch-heads/6533@{#1846})
$ google-chrome --version
Google Chrome 127.0.6533.99 

Environment:
Ubuntu 24.04 LTS
Erlang/OTP 25
Elixir (1.14.0)
wallaby, "~> 0.30"
ChromeDriver 127.0.6533.88
Google Chrome 127.0.6533.99

Here is the session:

%Wallaby.Session{
  id: "ff6a34a560a105897b7e4fcac9c45344",
  url: "http://localhost:47537/session/ff6a34a560a105897b7e4fcac9c45344",
  session_url: "http://localhost:47537/session/ff6a34a560a105897b7e4fcac9c45344",
  driver: Wallaby.Chrome,
  capabilities: %{
    chromeOptions: %{
      args: ["--no-sandbox", "window-size=1280,800", "--disable-gpu",
       "--fullscreen",
       "--user-agent=Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"],
      binary: "/usr/bin/google-chrome"
    },
    cssSelectorsEnabled: true,
    javascriptEnabled: false,
    loadImages: false,
    loggingPrefs: %{browser: "DEBUG"},
    nativeEvents: false,
    platform: "ANY",
    rotatable: false,
    takesScreenshot: true,
    unhandledPromptBehavior: "accept",
    version: ""
  },
  server: Wallaby.Chrome.Chromedriver,
  screenshots: []
}

When I try to go to the session_url manually I get the following error (even while the Wallaby test is still running)

{
  "value": {
    "error": "invalid session id",
    "message": "invalid session id",
    "stacktrace": "#0 0x56097cd0a03a \u003Cunknown\u003E\n#1 0x56097c9f14f1 \u003Cunknown\u003E\n#2 0x56097ca31dad \u003Cunknown\u003E\n#3 0x56097ca628d4 \u003Cunknown\u003E\n#4 0x56097ca5ce1c \u003Cunknown\u003E\n#5 0x56097ca5c037 \u003Cunknown\u003E\n#6 0x56097c9bbdaf \u003Cunknown\u003E\n#7 0x56097ccd371f \u003Cunknown\u003E\n#8 0x56097ccd7806 \u003Cunknown\u003E\n#9 0x56097ccc1827 \u003Cunknown\u003E\n#10 0x56097ccd7f91 \u003Cunknown\u003E\n#11 0x56097cca8f7e \u003Cunknown\u003E\n#12 0x56097c9ba84a \u003Cunknown\u003E\n#13 0x7a0982025d90 \u003Cunknown\u003E\n"
  }
}

Any help would be appreciated
Thank you very much

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions