@@ -29,13 +29,17 @@ def test_presentation(self):
2929
3030 self .get_new_driver (undetectable = True )
3131 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+ )
3335 try :
3436 self .assert_text ("OH YEAH, you passed!" , "h1" , timeout = 4 )
3537 self .post_message ("Selenium wasn't detected!" , duration = 4 )
3638 except Exception :
3739 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+ )
3943 self .assert_text ("OH YEAH, you passed!" , "h1" , timeout = 4 )
4044 self .post_message ("Selenium wasn't detected!" , duration = 4 )
4145 finally :
@@ -51,8 +55,7 @@ def test_presentation(self):
5155 "</mk-1></p>"
5256 )
5357 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 ()
5659 self .create_presentation (theme = "serif" , transition = "fade" )
5760 self .add_slide (
5861 "<p>Not just an army of bots, but an army of bots<br />"
0 commit comments