You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.
Describe the bug
Calling browser.timeouts() for Safari tests in a hook throws the following error:
Error: Remote end send an unknown status code.
at timeouts("implicit", 15000) - index.js:263:37
at init() - runner.js:235:55
For me, I put the call to browser.timeouts() in the before hook, and this error prevented the rest of the hook from executing. In my real project, there are some critical commands run afterwards in the same hook. Since those were skipped, my tests would fail for very hard-to-debug reasons.
in one shell, $ java -jar -Dwebdriver.gecko.driver=./geckodriver selenium-server-standalone-3.14.0.jar
in another shell, $ ./node_modules/.bin/wdio wdio.conf.js
Expected behavior
Any of the following:
Correctly setting the timeout
A clear error message that it is not possible to set the timeout in this browser referencing the line number of the browser.timeouts() call, and the WDIO test runner exits with a failure code
A clear error message that it is not possible to set the timeout in this browser referencing the line number of the browser.timeouts() call, and the WDIO test runner continues executing the hook
From @jochakovsky on October 31, 2018 1:0
Environment (please complete the following information):
Config of WebdriverIO
https://github.com/jochakovsky/webdriverio-browser-timeouts-bug
Describe the bug
Calling browser.timeouts() for Safari tests in a hook throws the following error:
For me, I put the call to browser.timeouts() in the
before
hook, and this error prevented the rest of the hook from executing. In my real project, there are some critical commands run afterwards in the same hook. Since those were skipped, my tests would fail for very hard-to-debug reasons.No issues setting timeouts in Chrome or Firefox.
To Reproduce
Steps to reproduce the behavior:
npm install
$ java -jar -Dwebdriver.gecko.driver=./geckodriver selenium-server-standalone-3.14.0.jar
$ ./node_modules/.bin/wdio wdio.conf.js
Expected behavior
Any of the following:
Copied from original issue: webdriverio/webdriverio#3029
The text was updated successfully, but these errors were encountered: