Fix MasterQA when running on Chrome browser

This commit is contained in:
Michael Mintz 2017-03-02 02:12:02 -05:00
parent 291daf6a7c
commit 28d1909c9e
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ class __MasterQATestCase__(BaseCase):
self.execute_script('''if(confirm("%s"))
{window.master_qa_result="Success!"}
else{window.master_qa_result="Failure!"}''' % question)
time.sleep(0.05)
self.wait_for_special_alert_absent()
text = self.execute_script('''return window.master_qa_result''')
else:
self.execute_script('''if(confirm("%s")){window.alert("Success!")}