qentinelqi / qweb

Keyword driven automation for the web
https://github.com/qentinelqi/qweb
Apache License 2.0
39 stars 17 forks source link

Safaridriver 15.5 raises TimeoutExceptions instead of expected exceptions #88

Closed turunenm closed 2 years ago

turunenm commented 2 years ago

Safaridriver 15.5 started raising TimeoutExceptions instead of expected exceptions such as InvalidSelectorException and NoSuchElementException

Most likely this behavior is an unintented change to the driver.

Fixed by adding driver.wait_implicitly(0.1) to the internal/browser/safari.py open_browser() method. Solution is bit hacky but refactor for handling TimeoutException would affect all platforms and browsers and therefore could have unintended side effects