File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -39,4 +39,14 @@ def test_display_cdp_events(self):
39
39
try :
40
40
self .verify_success ()
41
41
except Exception :
42
- self .fail_me ()
42
+ if self .is_element_visible ('input[value*="Verify"]' ):
43
+ self .click ('input[value*="Verify"]' )
44
+ elif self .is_element_visible ('iframe[title*="challenge"]' ):
45
+ self .switch_to_frame ('iframe[title*="challenge"]' )
46
+ self .click ("span.mark" )
47
+ else :
48
+ self .fail_me ()
49
+ try :
50
+ self .verify_success ()
51
+ except Exception :
52
+ self .fail_me ()
Original file line number Diff line number Diff line change @@ -28,4 +28,14 @@ def test_browser_is_undetected(self):
28
28
try :
29
29
self .verify_success ()
30
30
except Exception :
31
- self .fail_me ()
31
+ if self .is_element_visible ('input[value*="Verify"]' ):
32
+ self .click ('input[value*="Verify"]' )
33
+ elif self .is_element_visible ('iframe[title*="challenge"]' ):
34
+ self .switch_to_frame ('iframe[title*="challenge"]' )
35
+ self .click ("span.mark" )
36
+ else :
37
+ self .fail_me ()
38
+ try :
39
+ self .verify_success ()
40
+ except Exception :
41
+ self .fail_me ()
You can’t perform that action at this time.
0 commit comments