Вот код
puts 'requiring selenium...'
require "selenium-webdriver"
# configure the driver to run in headless mode
puts 'initializing options...'
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument('--headless')
puts 'initiating driver..'
driver = Selenium::WebDriver.for :chrome, options: options
puts 'navigating to google.com...'
driver.navigate.to "https://google.com/"
puts 'adjusting window size'
driver.manage.window.resize_to(800, 800)
puts 'capturing screenshot...'
driver.save_screenshot "google.png"
Выдает приведенную ниже ошибку при запуске драйвера
ChildProcess::Error: Unknown error (Windows says "The operation completed successfully.", but it did not.)
Среда
jruby 1.7 (ruby 2.0)
selenium-webdriver 3.12.0 (последняя версия)
chromedriver 2.38 (последняя версия)
windows 7