@StatelessCode
  @StatelessCode
Stateless Code | Remove the Webdrivers Gem from a Rails 7 App and Update Selenium Webdriver @StatelessCode | Uploaded September 2023 | Updated October 2024, 6 hours ago.
In the previous video, we encountered an error when trying to run our system tests because the version of Chrome installed on the system was newer than the latest version supported by the gem. After we updated the bundle, the system tests worked again, but the webdrivers gem had a post-install message noting that if you were using Ruby 3 that you should stop requiring the webdrivers gem and upgrade to version 4.11 or later of the Selenium Webdriver gem. New Rails 7 applications now omit the webdrivers gem from the Gemfile, but existing applications need to remove it manually.

In this video we drop webdrivers from the Gemfile for our application and update the bundle to a late enough version of selenium-webdriver. For once there aren't any surprises. Our test run fine after the update and the build succeeds when we push the code to GitHub.

This video covers:
00:00:00 Introduction
00:01:46 Clip from previous video where the error occurred
00:02:14 Review the GitHub issue and Rails GitHub repo change removing from generator templates
00:03:40 Remove webdrivers gem from Gemfile, run `bundle install`, and review changes to Gemfile.lock (gem is gone, but still has too low a version of selenium-webdriver)
00:05:08 Run `bundle update` to get selenium-webdriver to a proper version
00:05:46 Run tests and RuboCop (which was updated with the `bundle update`)
00:06:49 Review changes commit and push code
00:08:22 Pull request, ensure passing build, merge, and close issue

#ruby #rails7 #rails #rubyonrails #rubygems #codecast #screencast #github #opensource #minitest #TDD #agile #NerdDice #DnD #roleplaying #softwaredevelopment #learntocode #tailwind #postgresql #rubocop #devise #turbo #controllers #views #selenium #capybara #systemtest #webdrivers #chromedriver #seleniumwebdriver

See other related StatelessCode videos:
- Update to Rails 7.0.7.2 and Upgrade Other Dependencies to Clear Dependabot Alerts youtu.be/7vWRVgyUHVQ

Resources that we relied upon for this solution:
- Selenium Manager documentation page https://www.selenium.dev/documentation/selenium_manager/

This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
Remove the Webdrivers Gem from a Rails 7 App and Update Selenium WebdriverCodecast: statelesscode.com WordPress 14: Add Finishing Touches and Launch the SiteCodecast: Getting Started with Rails 7 06: Resourceful Routes for Articles and the link_to HelperCodecast: Create a RubyGem 80: Refactor ConvenienceMethods - Part 2Why Stateless Code?Codecast: Create a RubyGem 83: Ensure Adequate Commenting for ConvenienceMethods ModuleCodecast: Getting Started with Rails 7 14: Refactor into Comment PartialsCreate a RubyGem 92: Add Contributing Guidelines to the ProjectUpgrade a Rails 7 Application to Ruby 3.2.2Codecast: statelesscode.com WordPress 13: Upload Theme and Plugins to Real SiteCodecast: Create a RubyGem 03: Set up RuboCop and flesh out the READMENerdDice.com Retrospective 3 - The Retro that THEY Dont Want You to See

Remove the Webdrivers Gem from a Rails 7 App and Update Selenium Webdriver @StatelessCode

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER