Setup:
- run
bundle install
- Set env vars SAUCELABS_USERNAME and SAUCELABS_AUTHKEY appropriately.
Repro:
- To repro the issue run:
bundle exec ./sauce_firefox_repro.rb --platformName="Windows 10"
- To see it pass :
bundle exec ./sauce_firefox_repro.rb --platformName="Windows 11"
➜ sauce_firefox_repro bundle exec ./sauce_firefox_repro.rb --platformName="Windows 10"
Using platformName=Windows 10, we expect this to hang & fail
creating driver
# LONG HANG HERE while sauce UI fluctuates between "running and queued" back and forth
bundler: failed to load command: ./sauce_firefox_repro.rb (./sauce_firefox_repro.rb)
/Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/response.rb:56:in `assert_ok': status code 500; payload {"status"=>13, "sessionId"=>"75985c4e106d43e4b37781c259723974", "value"=>{"message"=>"Infrastructure Error -- The Sauce VM failed to prepare for this test.\\nFor help, please check https://docs.saucelabs.com/dev/error-messages"}} (Selenium::WebDriver::Error::ServerError)
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/response.rb:34:in `initialize'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/common.rb:101:in `new'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/common.rb:101:in `create_response'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/default.rb:103:in `request'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/default.rb:100:in `request'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/default.rb:100:in `request'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/default.rb:100:in `request'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/default.rb:100:in `request'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/default.rb:100:in `request'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/default.rb:100:in `request'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/http/common.rb:67:in `call'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/bridge.rb:675:in `execute'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/bridge.rb:76:in `create_session'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/common/driver.rb:323:in `block in create_bridge'
from <internal:kernel>:90:in `tap'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/common/driver.rb:322:in `create_bridge'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/common/driver.rb:73:in `initialize'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/remote/driver.rb:38:in `initialize'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/common/driver.rb:57:in `new'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver/common/driver.rb:57:in `for'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/selenium-webdriver-4.23.0/lib/selenium/webdriver.rb:89:in `for'
from /Users/seth/src/sauce_firefox_repro/sauce_firefox_repro.rb:34:in `<top (required)>'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/cli/exec.rb:58:in `load'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/cli/exec.rb:23:in `run'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/cli.rb:486:in `exec'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/cli.rb:31:in `dispatch'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/cli.rb:25:in `start'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/exe/bundle:48:in `block in <top (required)>'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
from /Users/seth/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems/bundler-2.3.22/exe/bundle:36:in `<top (required)>'
from /Users/seth/.rbenv/versions/3.0.5/bin/bundle:23:in `load'
from /Users/seth/.rbenv/versions/3.0.5/bin/bundle:23:in `<main>'
➜ sauce_firefox_repro bundle exec ./sauce_firefox_repro.rb --platformName="Windows 11"
Using platformName=Windows 11
creating driver
doing driver.get
doing driver.find_element
Table with id=hnmain found.