webdriverio-boneyard / v4

Deprecated code base for all WebdriverIO releases up until v4.x
MIT License
8 stars 21 forks source link

Calling browser.timeouts() for Safari tests in a hook errors and results in rest of hook not executing #11

Open christian-bromann opened 5 years ago

christian-bromann commented 5 years ago

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:

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.

No issues setting timeouts in Chrome or Firefox.

To Reproduce Steps to reproduce the behavior:

Expected behavior Any of the following:

Copied from original issue: webdriverio/webdriverio#3029

christian-bromann commented 5 years ago

@jochakovsky this could be a bug with Safaridriver or the way how WebdriverIO v4 supports Safaridriver. Feel free to propose a fix for this.