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
When running WebDriver tests with desktop Safari 12 on SauceLabs, I’m getting this error whenever there is a setTimeout or pollUntil used:
Suite Safari on macOS - starter application - index page FAILED
InvalidArgument: [POST http://(redacted)@localhost:4444/wd/hub/session/[id]/timeouts / {"type":"script","ms":30000,"script":30000}] Unknown timeout type in 'timeouts': 'type'
It seems that the recent Safari driver requires W3C WebDriver protocol strictly. I cannot find a way to enable the legacy protocol back with SauceLabs.
Looks like Leadfoot can already discover that the server requires WebDriver protocol for timeouts, see:
D'oh. Sending both types of data was, apparently for just a short time, a more efficient way to handle timeouts than doing the feature test. That didn't last long.
- Work around Safari's incorrect handling of visible text
- Skip /displayed tests for WebDriver remotes
- Move some checks from feature detection to error recovery
- Improve browser and platform detection from capabilities
fixes#168fixes#165fixes#161
When running WebDriver tests with desktop Safari 12 on SauceLabs, I’m getting this error whenever there is a
setTimeout
orpollUntil
used:It seems that the recent Safari driver requires W3C WebDriver protocol strictly. I cannot find a way to enable the legacy protocol back with SauceLabs.
Looks like Leadfoot can already discover that the server requires WebDriver protocol for timeouts, see:
leadfoot/src/Server.ts
Lines 883 to 898 in c99e15b
session.setTimeout
API sends both JSON Wire and WebDriver data at the same time regardless of the detected requirement:leadfoot/src/Session.ts
Lines 222 to 229 in c99e15b
The text was updated successfully, but these errors were encountered: