Merge pull request #32488 from swrobel/patch-4

Only disable headless chrome gpu on Windows
上级 4e5d70b3
* Only disable GPUs for headless Chrome on Windows.
It is not necessary anymore for Linux and macOS machines.
https://bugs.chromium.org/p/chromium/issues/detail?id=737678#c1
*Stefan Wrobel*
* Check exclude before flagging cookies as secure.
*Catherine Khuu*
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册