webdriverio: [π Bug]: Unable to run tests on Firefox using Selenium Standalone Service
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
7.19.6
Node.js Version
17.4.0
Mode
WDIO Testrunner
Which capabilities are you using?
{
browserName: 'firefox',
}
What happened?
When setting up new project using standalone service and setting up firefox as the browser, itβs not running the tests. Keeps throwing the following error -
webdriver: Request timed out! Consider increasing the "connectionRetryTimeout" option
Dependencies:
"devDependencies": {
"@wdio/cli": "^7.19.6",
"@wdio/local-runner": "^7.19.5",
"@wdio/mocha-framework": "^7.19.5",
"@wdio/selenium-standalone-service": "^7.19.5",
"@wdio/spec-reporter": "^7.19.5"
},
What is your expected behavior?
Should be able to run tests on Firefox
How to reproduce the bug.
Setup a new project using the wdio cli and in service select selenium-standalone-service and update the capabilities to add browserName as firefox. Then, try running the project with npx wdio
{
browserName: 'firefox',
}
Relevant log output
Execution of 1 workers started at 2022-04-28T17:00:49.658Z
2022-04-28T17:00:49.760Z INFO @wdio/cli:launcher: Run onPrepare hook
2022-04-28T17:00:56.931Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2022-04-28T17:00:56.932Z INFO @wdio/local-runner: Start worker 0-0 with arg:
[0-0] 2022-04-28T17:00:57.664Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in firefox - /test/specs/example.e2e.js
[0-0] 2022-04-28T17:00:58.506Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2022-04-28T17:00:58.510Z INFO webdriver: [POST] http://localhost:4444/wd/hub/session
[0-0] 2022-04-28T17:00:58.510Z INFO webdriver: DATA {
[0-0] capabilities: { alwaysMatch: { browserName: 'firefox' }, firstMatch: [ {} ] },
[0-0] desiredCapabilities: { browserName: 'firefox' }
[0-0] }
[0-0] 2022-04-28T17:02:58.536Z WARN webdriver: Request timed out! Consider increasing the "connectionRetryTimeout" option.
[0-0] 2022-04-28T17:02:58.537Z INFO webdriver: Retrying 1/3
[0-0] 2022-04-28T17:02:58.537Z INFO webdriver: [POST] http://localhost:4444/wd/hub/session
[0-0] 2022-04-28T17:02:58.537Z INFO webdriver: DATA {
[0-0] capabilities: { alwaysMatch: { browserName: 'firefox' }, firstMatch: [ {} ] },
[0-0] desiredCapabilities: { browserName: 'firefox' }
[0-0] }
[0-0] 2022-04-28T17:04:58.543Z WARN webdriver: Request timed out! Consider increasing the "connectionRetryTimeout" option.
[0-0] 2022-04-28T17:04:58.544Z INFO webdriver: Retrying 2/3
[0-0] 2022-04-28T17:04:58.544Z INFO webdriver: [POST] http://localhost:4444/wd/hub/session
[0-0] 2022-04-28T17:04:58.544Z INFO webdriver: DATA {
[0-0] capabilities: { alwaysMatch: { browserName: 'firefox' }, firstMatch: [ {} ] },
[0-0] desiredCapabilities: { browserName: 'firefox' }
[0-0] }
[0-0] 2022-04-28T17:06:58.550Z WARN webdriver: Request timed out! Consider increasing the "connectionRetryTimeout" option.
[0-0] 2022-04-28T17:06:58.550Z INFO webdriver: Retrying 3/3
[0-0] 2022-04-28T17:06:58.551Z INFO webdriver: [POST] http://localhost:4444/wd/hub/session
[0-0] 2022-04-28T17:06:58.551Z INFO webdriver: DATA {
[0-0] capabilities: { alwaysMatch: { browserName: 'firefox' }, firstMatch: [ {} ] },
[0-0] desiredCapabilities: { browserName: 'firefox' }
[0-0] }
[0-0] 2022-04-28T17:08:58.536Z ERROR webdriver: Request failed with status undefined due to TimeoutError: Timeout awaiting 'request' for 120000ms when running "http://localhost:4444/wd/hub/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"browserName":"firefox"},"firstMatch":[{}]},"desiredCapabilities":{"browserName":"firefox"}}"
[0-0] 2022-04-28T17:08:58.537Z ERROR webdriver: TimeoutError: Timeout awaiting 'request' for 120000ms when running "http://localhost:4444/wd/hub/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"browserName":"firefox"},"firstMatch":[{}]},"desiredCapabilities":{"browserName":"firefox"}}"
[0-0] at getTimeoutError (/Users/sam/Desktop/automation/wdio-standalone/node_modules/webdriver/build/utils.js:320:24)
[0-0] at NodeJSRequest._request (/Users/sam/Desktop/automation/wdio-standalone/node_modules/webdriver/build/request/index.js:147:59)
[0-0] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[0-0] at startWebDriverSession (/Users/sam/Desktop/automation/wdio-standalone/node_modules/webdriver/build/utils.js:67:20)
[0-0] at Function.newSession (/Users/sam/Desktop/automation/wdio-standalone/node_modules/webdriver/build/index.js:46:45)
[0-0] at remote (/Users/sam/Desktop/automation/wdio-standalone/node_modules/webdriverio/build/index.js:77:22)
[0-0] at Runner._startSession (/Users/sam/Desktop/automation/wdio-standalone/node_modules/@wdio/runner/build/index.js:223:56)
[0-0] at Runner._initSession (/Users/sam/Desktop/automation/wdio-standalone/node_modules/@wdio/runner/build/index.js:176:25)
[0-0] at Runner.run (/Users/sam/Desktop/automation/wdio-standalone/node_modules/@wdio/runner/build/index.js:88:19)
[0-0] 2022-04-28T17:08:58.543Z ERROR @wdio/runner: Error: Failed to create session.
[0-0] Timeout awaiting 'request' for 120000ms when running "http://localhost:4444/wd/hub/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"browserName":"firefox"},"firstMatch":[{}]},"desiredCapabilities":{"browserName":"firefox"}}"
[0-0] at startWebDriverSession (/Users/sam/Desktop/automation/wdio-standalone/node_modules/webdriver/build/utils.js:72:15)
[0-0] at processTicksAndRejections (node:internal/process/task_queues:96:5)
[0-0] at Function.newSession (/Users/sam/Desktop/automation/wdio-standalone/node_modules/webdriver/build/index.js:46:45)
[0-0] at remote (/Users/sam/Desktop/automation/wdio-standalone/node_modules/webdriverio/build/index.js:77:22)
[0-0] at Runner._startSession (/Users/sam/Desktop/automation/wdio-standalone/node_modules/@wdio/runner/build/index.js:223:56)
[0-0] at Runner._initSession (/Users/sam/Desktop/automation/wdio-standalone/node_modules/@wdio/runner/build/index.js:176:25)
[0-0] at Runner.run (/Users/sam/Desktop/automation/wdio-standalone/node_modules/@wdio/runner/build/index.js:88:19)
[0-0] FAILED in firefox - /test/specs/example.e2e.js
2022-04-28T17:08:58.671Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2022-04-28T17:08:58.674Z INFO @wdio/cli:launcher: Run onComplete hook
2022-04-28T17:08:58.675Z INFO @wdio/selenium-standalone-service: shutting down all browsers
Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:08:09
2022-04-28T17:08:58.676Z INFO @wdio/local-runner: Shutting down spawned worker
2022-04-28T17:08:58.933Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2022-04-28T17:08:58.933Z INFO @wdio/local-runner: shutting down
Code of Conduct
- I agree to follow this projectβs Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 30 (16 by maintainers)
Running since Friday into the same issue with Chrome. (Version 101). Error Log:
webdriver: Request failed with status undefined due to TimeoutError: Timeout awaiting 'request' for 90000ms when running "http://localhost:4444/wd/hub/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"browserName":"chrome","goog:chromeOptions":{}},"firstMatch":[{}]},"desiredCapabilities":{"browserName":"chrome","goog:chromeOptions":{}}}"[0-0] 2022-05-03T12:32:03.910Z ERROR webdriver: TimeoutError: Timeout awaiting 'request' for 90000ms when running "http://localhost:4444/wd/hub/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"browserName":"chrome","goog:chromeOptions":{}},"firstMatch":[{}]},"desiredCapabilities":{"browserName":"chrome","goog:chromeOptions":{}}}"Hi Team, Any update on this. I am facing the same issue
Seeing a similar issue trying local muti-remote with selenium standalone and firefox:
the error appears to be coming from webdriver and the driver version for geckodriver?