@@ -29,13 +29,17 @@ def test_presentation(self):
29
29
30
30
self .get_new_driver (undetectable = True )
31
31
try :
32
- self .driver .uc_open_with_tab ("https://nowsecure.nl/#relax" )
32
+ self .driver .uc_open_with_reconnect (
33
+ "https://nowsecure.nl/#relax" , reconnect_time = 3
34
+ )
33
35
try :
34
36
self .assert_text ("OH YEAH, you passed!" , "h1" , timeout = 4 )
35
37
self .post_message ("Selenium wasn't detected!" , duration = 4 )
36
38
except Exception :
37
39
self .clear_all_cookies ()
38
- self .driver .uc_open_with_tab ("https://nowsecure.nl/#relax" )
40
+ self .driver .uc_open_with_reconnect (
41
+ "https://nowsecure.nl/#relax" , reconnect_time = 3
42
+ )
39
43
self .assert_text ("OH YEAH, you passed!" , "h1" , timeout = 4 )
40
44
self .post_message ("Selenium wasn't detected!" , duration = 4 )
41
45
finally :
@@ -51,8 +55,7 @@ def test_presentation(self):
51
55
"</mk-1></p>"
52
56
)
53
57
self .begin_presentation (filename = "uc_presentation.html" )
54
- subprocess .Popen ("pytest multi_uc.py --uc -q -n3" , shell = True )
55
- self .sleep (6 )
58
+ subprocess .Popen ("pytest multi_uc.py --uc -n3" , shell = True ).wait ()
56
59
self .create_presentation (theme = "serif" , transition = "fade" )
57
60
self .add_slide (
58
61
"<p>Not just an army of bots, but an army of bots<br />"
0 commit comments