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

Chromedriver option needs update since chrome 120 #2725

Closed
aandis opened this issue Dec 8, 2023 · 2 comments
Closed

Chromedriver option needs update since chrome 120 #2725

aandis opened this issue Dec 8, 2023 · 2 comments

Comments

@aandis
Copy link

aandis commented Dec 8, 2023

Meta

Capybara Version: 3.39.2

The following code breaks -

Capybara.javascript_driver = :selenium_chrome_headless
page.driver.browser.logs.get(:browser)

#=> undefined method `logs' for #<Selenium::WebDriver::Chrome::Driver:0x75d3dfd5c1800834 browser=:"chrome-headless-shell">

Works if your chrome version is < 120 though

See

@aandis
Copy link
Author

aandis commented Dec 8, 2023

opts.add_argument('--headless')
needs to be changed to --headless=new

@aandis
Copy link
Author

aandis commented Dec 14, 2023

closed via #2726

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

No branches or pull requests

1 participant