@@ -60,18 +60,24 @@ def clear_out_old_logs(self, archive_past_runs=True, get_log_folder=False):
60
60
61
61
def jq_confirm_dialog (self , question ):
62
62
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 )
64
67
jqcd = ("""jconfirm({
65
- boxWidth: '30 %%',
68
+ boxWidth: '32.5 %%',
66
69
useBootstrap: false,
67
70
containerFluid: false,
68
- theme: 'light',
71
+ animationBounce: 1,
72
+ type: 'default',
73
+ theme: 'bootstrap',
74
+ typeAnimated: true,
69
75
animation: 'scale',
70
76
draggable: true,
71
- dragWindowGap: 0 ,
77
+ dragWindowGap: 1 ,
72
78
container: 'body',
73
- title: 'Manual Check #%s: ',
74
- content: '<h3><b>%s</b></h3> ',
79
+ title: '%s ',
80
+ content: '',
75
81
buttons: {
76
82
fail_button: {
77
83
btnClass: 'btn-red',
@@ -88,7 +94,7 @@ def jq_confirm_dialog(self, question):
88
94
}
89
95
}
90
96
}
91
- });""" % ( count , question ) )
97
+ });""" % title_content )
92
98
self .execute_script (jqcd )
93
99
94
100
def manual_page_check (self , * args ):
@@ -106,11 +112,10 @@ def manual_page_check(self, *args):
106
112
question = instructions
107
113
108
114
use_jqc = False
115
+ self .wait_for_ready_state_complete ()
109
116
if js_utils .is_jquery_confirm_activated (self .driver ):
110
117
use_jqc = True
111
118
else :
112
- if self .browser == "firefox" :
113
- js_utils .activate_jquery (self .driver )
114
119
js_utils .activate_jquery_confirm (self .driver )
115
120
get_jqc = None
116
121
try :
@@ -374,10 +379,7 @@ def process_manual_check_results(self, auto_close_results_page=False):
374
379
self .open ("file://%s" % archived_results_file )
375
380
if auto_close_results_page :
376
381
# 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 )
381
383
else :
382
384
# The user can decide when to close the results page
383
385
print ("\n *** Close the html report window to continue ***" )
0 commit comments