Skip to content

Commit 87c8a6a

Browse files
committed
Update where the verify delay happens in MasterQA
1 parent 902fa92 commit 87c8a6a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

seleniumbase/masterqa/master_qa.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ def manual_page_check(self, *args):
111111
elif instructions and "?" in instructions:
112112
question = instructions
113113

114+
wait_time_before_verify = WAIT_TIME_BEFORE_VERIFY
115+
if self.verify_delay:
116+
wait_time_before_verify = float(self.verify_delay)
117+
# Allow a moment to see the full page before the dialog box pops up
118+
time.sleep(wait_time_before_verify)
119+
114120
use_jqc = False
115121
self.wait_for_ready_state_complete()
116122
if js_utils.is_jquery_confirm_activated(self.driver):
@@ -126,12 +132,6 @@ def manual_page_check(self, *args):
126132
use_jqc = False
127133

128134
if use_jqc:
129-
wait_time_before_verify = WAIT_TIME_BEFORE_VERIFY
130-
if self.verify_delay:
131-
wait_time_before_verify = float(self.verify_delay)
132-
# Allow a moment to see the full page before the dialog box pops up
133-
time.sleep(wait_time_before_verify)
134-
135135
# Use the jquery_confirm library for manual page checks
136136
self.jq_confirm_dialog(question)
137137
time.sleep(0.02)

0 commit comments

Comments
 (0)