Skip to content

Commit

Permalink
Copy DOM also when hit ElementClickInterceptedException
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Balogh <[email protected]>
  • Loading branch information
petr-balogh committed Apr 17, 2024
1 parent 8fe2ad7 commit d35b006
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ocs_ci/ocs/ui/base_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def _do_click(_locator, _timeout=30, _enable_screenshot=False, _copy_dom=False):
# appears due to JS graphics on the page: one element overlapping another, or dynamic graphics in progress
logger.info("ElementClickInterceptedException, try click again")
take_screenshot("ElementClickInterceptedException")
self.copy_dom()
time.sleep(5)
_do_click(locator, timeout, enable_screenshot, copy_dom)

Expand Down

0 comments on commit d35b006

Please sign in to comment.