From 893c7a4ac00ca2a62478b8f22cdca1f5ce56f150 Mon Sep 17 00:00:00 2001 From: Tim Powell Date: Thu, 27 Feb 2020 10:25:12 -0800 Subject: [PATCH] message now contains stringified element, change the expression to not include it --- helium/_impl/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helium/_impl/__init__.py b/helium/_impl/__init__.py index e1767ac..1e08378 100644 --- a/helium/_impl/__init__.py +++ b/helium/_impl/__init__.py @@ -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 @@ -1284,4 +1284,4 @@ def accept(self): def dismiss(self): self.first_occurrence.dismiss() def _write(self, text): - self.first_occurrence.send_keys(text) \ No newline at end of file + self.first_occurrence.send_keys(text)