oesmith / puffing-billy

A rewriting web proxy for testing interactions between your browser and external sites. Works with ruby + rspec.
MIT License
654 stars 170 forks source link

Replace deprecated headless! `Selenium::WebDriver::Chrome::Options` #333

Closed gustavosobral closed 11 months ago

gustavosobral commented 11 months ago

The selenium-webdriver headless! method has been deprecated since version 4.8 (https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES#L114) and on version 4.11.0 it got removed (https://github.com/SeleniumHQ/selenium/pull/12417)

According to the documentation https://www.selenium.dev/blog/2023/headless-is-going-away/, the new way to run a headless browser is with the --headless=new argument.

Fixes https://github.com/oesmith/puffing-billy/issues/332

ronwsmith commented 11 months ago

Thanks for the contribution! Released in 3.2.0.