Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Version mismatch between browser and WebDriver #2

Open
TilBlechschmidt opened this issue Jul 31, 2020 · 1 comment
Open

Version mismatch between browser and WebDriver #2

TilBlechschmidt opened this issue Jul 31, 2020 · 1 comment
Labels
Priority: Low Minor tweaks that do not impact the project but are still useful Status: Available Solution outline is present and implementation can follow Type: Bug Issues that affect the operation of the software

Comments

@TilBlechschmidt
Copy link
Owner

🐛 Bug description

The WebDriver install script currently uses a pinned version for the driver but installs the latest version of the selected browser. This is known to cause issues due to incompatibilities especially with Google Chrome.

🦶 Reproduction steps

Steps to reproduce the behavior:

  1. Wait until a new Browser version is released
  2. Attempt to build the node image (chrome is more likely to cause issues)
  3. Run the grid locally in docker
  4. Launch a new session
  5. Watch it burn on startup 🔥

🎯 Expected behaviour

When selecting a browser version the install script should always download a matching WebDriver executable.


Context

Version
This bug is not version dependent.

Where did the problem occur?

  • ☸️ Kubernetes
  • 🐳 Docker
  • 👨‍💻 Locally

Which browsers cause the bug?
Chrome is more likely to break with a version mismatch but it is expected to happen to Firefox as well.

Additional context
A subsequent issue is that there are seemingly no past binary releases for Google Chrome, thus we can't pin it to prevent issues. To remedy this problem there has to be a reliable method of choosing a chromedriver version for the latest Chrome.

@TilBlechschmidt TilBlechschmidt added Type: Bug Issues that affect the operation of the software Priority: Medium Default priority if nothing else matches Status: Pending Initial issue stage waiting for further evaluation labels Jul 31, 2020
@TilBlechschmidt TilBlechschmidt self-assigned this Jul 31, 2020
@TilBlechschmidt
Copy link
Owner Author

TilBlechschmidt commented Jul 31, 2020

For chromedriver there exists a Workflow to retrieve a version that matches a given Chrome version number. It is outlined here.

Mozilla does not appear to have a comprehensive method available. However, a version matching chart can be found in their documentation. It suggests that the latest geckodriver has support for roughly the last two years of Firefox versions.

Solution sketch

Firefox

A viable solution would be to always install the latest geckodriver under the assumption that the ubuntu repositories don't lack behind more than one year.

Chrome

To solve the version mismatch the bash script linked in the original post would have to follow through the workflow linked at the beginning of this comment to find a matching driver for the Chrome version available from the ubuntu repos.

@TilBlechschmidt TilBlechschmidt added Priority: Low Minor tweaks that do not impact the project but are still useful Status: Available Solution outline is present and implementation can follow and removed Priority: Medium Default priority if nothing else matches Status: Pending Initial issue stage waiting for further evaluation labels Jul 31, 2020
@TilBlechschmidt TilBlechschmidt removed their assignment Jul 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Priority: Low Minor tweaks that do not impact the project but are still useful Status: Available Solution outline is present and implementation can follow Type: Bug Issues that affect the operation of the software
Projects
None yet
Development

No branches or pull requests

1 participant