Created
November 5, 2017 00:20
-
-
Save gunesmes/2fe607585cc6f76b4a3d7ccfa443edab to your computer and use it in GitHub Desktop.
chromedriver headless vs chromedriver
This file contains hidden or 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
Capybara.register_driver :chrome do |app| | |
args = ["--start-fullscreen", "--disable-infobars", "--disable-notifications"] | |
Capybara::Selenium::Driver.new(app, {:browser => :chrome, :args => args}) | |
end | |
Capybara.register_driver :chrome_headless do |app| | |
args = ["--window-size=1280,1696", "--no-sandbox", "--headless", "--disable-gpu", "--disable-infobars", "--disable-notifications"] | |
Capybara::Selenium::Driver.new(app, {:browser => :chrome, :args => args}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment