stuart / elixir-webdriver

WebDriver client for Elixir.
MIT License
120 stars 32 forks source link

Sessions in Firefox and Chrome #10

Closed stuart closed 10 years ago

stuart commented 11 years ago

Firefox does not support getting a list of sessions. This needs a better error report.

stuart commented 10 years ago

ChromeDriver has the same issue.

stuart commented 10 years ago

Firefox response:

{:invalid_request, 404, "Unrecognized command: GET /sessions", %WebDriver.Protocol.Request{body: :null, headers: [{"Accept", "application/json;charset=UTF-8"}], method: :GET, url: "http://localhost:59027/hub/sessions"}}

stuart commented 10 years ago

Chrome response:

{:invalid_request, 404, "unknown command: sessions", %WebDriver.Protocol.Request{body: :null, headers: [{"Accept", "application/json;charset=UTF-8"}], method: :GET, url: "http://localhost:59041/wd/hub/sessions"}}

stuart commented 10 years ago

Patched tests to make this obvious. Can't fix otherwise.