qentinelqi / qweb

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

Save screenshot fix #121

Closed turunenm closed 1 year ago

turunenm commented 1 year ago

Commit which contained typing fixes and streamlined handling of nonexistent browser introduced a bug which caused missing browser executable and missing webdriver exceptions to misleadingly show up as QWebDriverError("No browser open. Use OpenBrowser keyword to open browser first")

Another side effect was that in such situations fallback OSScreenshot was not used to get information about the execution environment.

PR contains

There are a lot of places where if get_current_browser() is None is unnecessarily checked (due to the mentioned streamlining) but these should be cleaned up in a separate PR