Skip to content

Commit

Permalink
Merge pull request #167 from quarckster/fix_chrome
Browse files Browse the repository at this point in the history
Added a workaround for Chrome 78 error
  • Loading branch information
mshriver authored Nov 7, 2019
2 parents d854e92 + b8b6001 commit a77e2b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/widgetastic/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,14 @@ def move_to_element(self, locator, *args, **kwargs):
# improved in version 78.
# https://bugs.chromium.org/p/chromedriver/issues/detail?id=3110
# https://bugs.chromium.org/p/chromedriver/issues/detail?id=3087
elif (self.browser_type == 'chrome' and self.browser_version >= 76 and
elif (self.browser_type == 'chrome' and 76 <= self.browser_version < 78 and
("Cannot read property 'left' of undefined" in e.msg)):
pass
# Previous issue ^ wasn't fixed in Chrome 78 but throws another error
elif (self.browser_type == 'chrome' and self.browser_version >= 78 and
("Failed to execute 'elementsFromPoint' on 'Document': The provided double "
"value is non-finite." in e.msg)):
pass
else:
# Something else, never let it sink
raise
Expand Down

0 comments on commit a77e2b9

Please sign in to comment.