Skip to content

Commit

Permalink
Merge pull request #2 from tbp105/master
Browse files Browse the repository at this point in the history
Handle new message format of ElementClickInterceptedException.
  • Loading branch information
mherrmann authored Feb 27, 2020
2 parents 145ed4a + 893c7a4 commit bc24b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helium/_impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def should_ignore_exception(self, exception):
return True
if isinstance(exception, WebDriverException):
msg = exception.msg
if 'Element is not clickable at point' in msg \
if 'is not clickable at point' in msg \
and 'Other element would receive the click' in msg:
# This can happen when the element has moved.
return True
Expand Down Expand Up @@ -1284,4 +1284,4 @@ def accept(self):
def dismiss(self):
self.first_occurrence.dismiss()
def _write(self, text):
self.first_occurrence.send_keys(text)
self.first_occurrence.send_keys(text)

0 comments on commit bc24b54

Please sign in to comment.