未验证 提交 bade4856 编写于 作者: S Stefan Wrobel 提交者: GitHub

Only disable headless chrome gpu on Windows

Per Chromium team this has not been necessary on other platforms for quite some time: https://bugs.chromium.org/p/chromium/issues/detail?id=737678#c1
上级 bba832d4
......@@ -33,7 +33,7 @@ def options
def headless_chrome_browser_options
options = Selenium::WebDriver::Chrome::Options.new
options.args << "--headless"
options.args << "--disable-gpu"
options.args << "--disable-gpu" if Gem.win_platform?
options
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册