Skip to content

Commit

Permalink
Update example tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Nov 10, 2023
1 parent 2f5838d commit f9a31a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/raw_form_turnstile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ def open_the_form_turnstile_page(sb):


def click_turnstile_and_verify(sb):
sb.driver.reconnect(0.1)
iframe = sb.driver.find_element("iframe")
sb.driver.reconnect(0.5)
sb.driver.reconnect(0.1) # Another way to reconnect
sb.driver.switch_to.frame(iframe)
sb.driver.uc_click("span.mark")
sb.highlight("img#captcha-success", timeout=3.33)
Expand Down
3 changes: 1 addition & 2 deletions examples/raw_turnstile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ def open_the_turnstile_page(sb):


def click_turnstile_and_verify(sb):
sb.driver.reconnect(0.1)
iframe = sb.driver.find_element("iframe")
sb.driver.reconnect(0.5)
sb.driver.reconnect(0.1) # Another way to reconnect
sb.driver.switch_to.frame(iframe)
sb.driver.uc_click("span.mark")
sb.assert_element("img#captcha-success", timeout=3.33)
Expand Down

0 comments on commit f9a31a3

Please sign in to comment.