We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9de32e0 + 0c9f35a commit c27a752Copy full SHA for c27a752
ci/qunit-selenium-runner.rb
@@ -4,14 +4,16 @@
4
require_relative "test_run"
5
6
driver = if ARGV[1]
7
- ::Selenium::WebDriver.for(:remote, url: ARGV[1], desired_capabilities: :chrome)
+ capability = ::Selenium::WebDriver::Remote::Capabilities.chrome
8
+
9
+ ::Selenium::WebDriver.for(:remote, url: ARGV[1], capabilities: [capability])
10
else
11
driver_options = Selenium::WebDriver::Chrome::Options.new
12
driver_options.add_argument("--headless")
13
driver_options.add_argument("--disable-gpu")
14
driver_options.add_argument("--no-sandbox")
15
- ::Selenium::WebDriver.for(:chrome, options: driver_options)
16
+ ::Selenium::WebDriver.for(:chrome, capabilities: [driver_options])
17
end
18
19
driver.get(ARGV[0])
0 commit comments