Created
May 6, 2018 14:13
-
-
Save deivid-rodriguez/2a528dab324d2e4f112cc7176c8cd581 to your computer and use it in GitHub Desktop.
Chromdriver-helper forces me to use it on every project once I install it on a single project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deivid@pantani ~/Code/test_app $ cat Gemfile | |
source "https://rubygems.org" | |
# My superawesome project with a lot of dependencies that does a lot of cool | |
# stuff, does not depend on chromedriver-helper and gets tested using a chromedriver | |
# version globally installed at /usr/local/bin/chromedriver | |
deivid@pantani ~/Code/test_app $ chromedriver --version | |
ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881) | |
deivid@pantani ~/Code/test_app $ bundle exec chromedriver --version | |
ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881) | |
deivid@pantani ~/Code/test_app $ which chromedriver | |
/usr/local/bin/chromedriver | |
deivid@pantani ~/Code/test_app $ bundle exec which chromedriver | |
/usr/local/bin/chromedriver | |
deivid@pantani ~/Code/test_app2 $ cat Gemfile | |
source "https://rubygems.org" | |
gem "chromedriver-helper" | |
deivid@pantani ~/Code/test_app2 $ bundle | |
Fetching gem metadata from https://rubygems.org/............. | |
Using io-like 0.3.0 | |
Using archive-zip 0.7.0 | |
Using bundler 1.16.1 | |
Using mini_portile2 2.3.0 | |
Using nokogiri 1.8.2 | |
Fetching chromedriver-helper 1.1.0 | |
Installing chromedriver-helper 1.1.0 | |
Bundle complete! 1 Gemfile dependency, 6 gems now installed. | |
Use `bundle info [gemname]` to see where a bundled gem is installed. | |
deivid@pantani ~/Code/test_app2 $ bundle exec chromedriver --version | |
ChromeDriver 2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb) | |
deivid@pantani ~/Code/test_app2 $ bundle exec which chromedriver | |
/home/deivid/.rbenv/versions/2.5.1/bin/chromedriver | |
deivid@pantani ~/Code/test_app2 $ chromedriver --version | |
ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881) | |
deivid@pantani ~/Code/test_app2 $ which chromedriver | |
/usr/local/bin/chromedriver | |
deivid@pantani ~/Code/test_app2 $ cd ../test_app/ | |
deivid@pantani ~/Code/test_app $ bundle exec chromedriver --version | |
bundler: failed to load command: chromedriver (/home/deivid/.rbenv/versions/2.5.1/bin/chromedriver) | |
Gem::Exception: can't find executable chromedriver for gem chromedriver-helper. chromedriver-helper is not currently included in the bundle, perhaps you meant to add it to your Gemfile? | |
/home/deivid/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/bundler/rubygems_integration.rb:458:in `block in replace_bin_path' | |
/home/deivid/.rbenv/versions/2.5.1/lib/ruby/site_ruby/2.5.0/bundler/rubygems_integration.rb:478:in `block in replace_bin_path' | |
/home/deivid/.rbenv/versions/2.5.1/bin/chromedriver:23:in `<top (required)>' | |
deivid@pantani ~/Code/test_app $ bundle exec which chromedriver | |
/home/deivid/.rbenv/versions/2.5.1/bin/chromedriver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment