Skip to content

Commit

Permalink
add sleep between retries
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Jan 30, 2025
1 parent 4e59c63 commit cfffaef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions check-imdb-hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def click(title, xpath, screen, count=0):
_button.click()
screenshot_and_wait(screen)
except ElementClickInterceptedException as e:
screenshot_and_wait(f"{screen}.{count}")
if count < 10:
click(title, xpath, screen, count=count + 1)

Expand Down

0 comments on commit cfffaef

Please sign in to comment.