Skip to content

Commit

Permalink
Merge pull request #262 from tpapaioa/chrome_invisible_element_workar…
Browse files Browse the repository at this point in the history
…ound

Latest chrome exception handling for invisible element in move_to_element
  • Loading branch information
digitronik authored Aug 29, 2024
2 parents 6212348 + 1d16798 commit 7723d8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/widgetastic/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,12 @@ def move_to_element(self, locator: LocatorAlias, *args, **kwargs) -> WebElement:
)
):
pass
elif (
self.browser_type == "chrome"
and self.browser_version >= 123
and ("has no size and location" in e.msg)
):
pass
else:
# Something else, never let it sink
raise
Expand Down

0 comments on commit 7723d8f

Please sign in to comment.