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

--host-resolver-rules crashing application now #116

Open
NemyaNation opened this issue Sep 16, 2021 · 0 comments
Open

--host-resolver-rules crashing application now #116

NemyaNation opened this issue Sep 16, 2021 · 0 comments

Comments

@NemyaNation
Copy link

NemyaNation commented Sep 16, 2021

Following from my previous issue (thanks for replying btw..) #112

Running:

require 'selenium-webdriver'

options = Selenium::WebDriver::Chrome::Options.new(args: ['headless'])

driver = Selenium::WebDriver.for(:chrome, options: options)

driver.get('http://stackoverflow.com/')

puts "source: ",driver.page_source

driver.quit

works fine on heroku.


Running

require 'selenium-webdriver'

options = Selenium::WebDriver::Chrome::Options.new(args: [
	'headless',
	'host-resolver-rules=MAP stackoverflow.com 192.0.2.1'
])

driver = Selenium::WebDriver.for(:chrome, options: options)

driver.get('http://stackoverflow.com/')

puts "source: ",driver.page_source

(notice the added option host-resolver-rules) fails miserabley with error:

Selenium::WebDriver::Error::SessionNotCreatedError (session not created
from tab crashed
(Session info: headless chrome=93.0.4577.82)):
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