@@ -60,18 +60,24 @@ def clear_out_old_logs(self, archive_past_runs=True, get_log_folder=False):
6060
6161 def jq_confirm_dialog (self , question ):
6262 count = self .manual_check_count + 1
63- question = js_utils .escape_quotes_if_needed (question )
63+ title_content = ('<center><font color="#7700bb">Manual Check #%s:'
64+ '</font></center><hr><font color="#0066ff">%s</font>'
65+ '' % (count , question ))
66+ title_content = js_utils .escape_quotes_if_needed (title_content )
6467 jqcd = ("""jconfirm({
65- boxWidth: '30 %%',
68+ boxWidth: '32.5 %%',
6669 useBootstrap: false,
6770 containerFluid: false,
68- theme: 'light',
71+ animationBounce: 1,
72+ type: 'default',
73+ theme: 'bootstrap',
74+ typeAnimated: true,
6975 animation: 'scale',
7076 draggable: true,
71- dragWindowGap: 0 ,
77+ dragWindowGap: 1 ,
7278 container: 'body',
73- title: 'Manual Check #%s: ',
74- content: '<h3><b>%s</b></h3> ',
79+ title: '%s ',
80+ content: '',
7581 buttons: {
7682 fail_button: {
7783 btnClass: 'btn-red',
@@ -88,7 +94,7 @@ def jq_confirm_dialog(self, question):
8894 }
8995 }
9096 }
91- });""" % ( count , question ) )
97+ });""" % title_content )
9298 self .execute_script (jqcd )
9399
94100 def manual_page_check (self , * args ):
@@ -106,11 +112,10 @@ def manual_page_check(self, *args):
106112 question = instructions
107113
108114 use_jqc = False
115+ self .wait_for_ready_state_complete ()
109116 if js_utils .is_jquery_confirm_activated (self .driver ):
110117 use_jqc = True
111118 else :
112- if self .browser == "firefox" :
113- js_utils .activate_jquery (self .driver )
114119 js_utils .activate_jquery_confirm (self .driver )
115120 get_jqc = None
116121 try :
@@ -374,10 +379,7 @@ def process_manual_check_results(self, auto_close_results_page=False):
374379 self .open ("file://%s" % archived_results_file )
375380 if auto_close_results_page :
376381 # Long enough to notice the results before closing the page
377- wait_time_before_verify = WAIT_TIME_BEFORE_VERIFY
378- if self .verify_delay :
379- wait_time_before_verify = float (self .verify_delay )
380- time .sleep (wait_time_before_verify )
382+ time .sleep (1.0 )
381383 else :
382384 # The user can decide when to close the results page
383385 print ("\n *** Close the html report window to continue ***" )
0 commit comments