-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure selenium image v4 works #569
Comments
Related: #455 |
Not sure if this is a Docker HUB v4 issue or Selenium itself (or my bad programming). It looks like it's a wallaby issue since it works with Ruby. Here is what worked and didn't: Start TL;DR;Wallaby results with v4 hub:
My guess is the ID isn't being loaded, stored or sent correctly by Wallaby. End TL;DR;To reproduce: From LInux install docker and docker-composer (pacman -S docker docker-composer). Configure docker to use TCP (see: https://gist.github.com/styblope/dc55e0ad2a9848f2cc3307d4819d819f .. if any selenium docker dev guys read this, PLEASE add this note to your README.md) Create a hub config file in /tmp/config.toml
Create a place to save the sessions (video?): Create a docker-compose file /tmp/docker-compose-v3-dynamic-grid.yml
Start the hub You can verify the hub is up by checking out http://localhost:4444. Now from an elixir app with wallaby installed. vi ./config/config.exs
Then form iex fire up a chrome and firefox session.
Yes, I know one URL has the path /wd/hub/. This was how it worked in v3, but is no longer needed with v4 (optional). I did it each way to test that it's not a path issue. These will both return {:ok, session}. You should also see two new dynamically created selenium sessions in http://localhost:4444. Now blow it up by running this in iex:
These will both fail. If you look at the shell running the selenium-hub (via docker-compose) you'll see WARN messages with more details. But I think the key was already pointed out earlier in my message about the ID: being blank. To see it work, run this
If you want to see that these ruby sessions are working, from http://localhost:4444 find the movie icon on the left of the session ID. Click that. Password is "secret". Should load a VNC of the browser on google or yahoo. (To view the VNC session via noVNC) Selenium's v4 hub feature is going to be pretty cool. Especially with elixir's parallel processing ability. I hope we (you) can get this working. |
The error described in the OP-linked elixirforum discussion is actually fixed by an existing PR: I'm not sure if this PR can be merged or not but it would be great if it could. I believe it would fix this issue. |
I am going to go through recent PRs in the next week, I can check out this issue as well. |
GitHub Actions updated selenium to be v4 and I am trying to get the tests to pass. Running v4 locally (on my M1 mac) works fine, but for some reason the tests are timing out when attempting to create a session on GitHub Actions. Anyone have any idea? https://github.com/elixir-wallaby/wallaby/runs/6316788812?check_suite_focus=true |
adding more context on this - selenium 4.9.0 was when the json wire protocol was removed. I'm able to run wallaby against selenium standalone 4.8.0 for both chrome and firefox, but not against 4.9.0. |
As per https://elixirforum.com/t/setting-up-wallaby-with-docker-compose-chrome-and-selenium/32296/14?u=slouchpie
i am opening a reminder issue to test against v4 selenium.
The text was updated successfully, but these errors were encountered: