Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use selenium_chrome_headless capybara driver name #2351

Merged
merged 1 commit into from
Nov 7, 2017

Conversation

jhawthorn
Copy link
Contributor

We still need to customize it for our desired window size, but this is the name capybara provides, and capybara-screenshot now understands that name, so we should use it for consistency with other projects.

Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(app, browser: :chrome)
Capybara.register_driver :selenium_chrome_headless do |app|
browser_options = ::Selenium::WebDriver::Chrome::Options.new()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use parentheses for method calls with no arguments.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

We still need to customize it for our desired window size, but this is
the name capybara provides, and capybara-screenshot now understands that
name, so we should use it for consistency with other projects.
@jhawthorn jhawthorn force-pushed the capybara_driver_name branch from 9c5896c to e871250 Compare November 6, 2017 18:44
@jhawthorn jhawthorn merged commit faf3ce0 into solidusio:master Nov 7, 2017
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