Skip to content

Update selenium and capybara to fix chromedriver issues#8956

Merged
mitchellhenke merged 11 commits intomainfrom
mitchellhenke/update-selenium
Aug 8, 2023
Merged

Update selenium and capybara to fix chromedriver issues#8956
mitchellhenke merged 11 commits intomainfrom
mitchellhenke/update-selenium

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

The issues presented by #8942 require a bit of a deeper set of changes to fix for now.

As of selenium-webdriver version 4.11.0 manages its own browser driver management and the webdrivers gem is deprecated. The update to 4.11.0 broke capybara's usage of selenium, which was patched in capybara 3.39.1.

Unfortunately, capybara 3.39.0 breaks some of our tests as it includes a change that auto-submits forms if you set a value that ends in a "\n" as we do here. I've forked and created a branch to undo that specific change and brought it in to this pull request. I've also opened teamcapybara/capybara#2696 with a different patch to try to maintain some of the intended functionality.

@aduth
Copy link
Contributor

aduth commented Aug 8, 2023

if you set a value that ends in a "\n" as we do here

Could we trim the value we set?

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/update-selenium branch from 43780e5 to a597541 Compare August 8, 2023 18:47
@mitchellhenke
Copy link
Contributor Author

if you set a value that ends in a "\n" as we do here

Could we trim the value we set?

I swear I did try that and it failed, but I tried again and it does work. I've removed my fork and have added the new line removals with a comment explaining why.

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/update-selenium branch from a597541 to 3dab8b1 Compare August 8, 2023 18:49
@mitchellhenke mitchellhenke marked this pull request as ready for review August 8, 2023 18:52
Mitchell Henke and others added 4 commits August 8, 2023 13:52
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@mitchellhenke mitchellhenke merged commit 18c59cc into main Aug 8, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/update-selenium branch August 8, 2023 19:34
@jmhooper jmhooper mentioned this pull request Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants