Index: tst_main_treatment_vitals/test.py =================================================================== diff -u -r5c9825f73e3d8daf6070b64d2c54cf8da61cbef4 -r0e972c9dd9f93c0f54bd085ee92eb0f6f0da9a4e --- tst_main_treatment_vitals/test.py (.../test.py) (revision 5c9825f73e3d8daf6070b64d2c54cf8da61cbef4) +++ tst_main_treatment_vitals/test.py (.../test.py) (revision 0e972c9dd9f93c0f54bd085ee92eb0f6f0da9a4e) @@ -732,9 +732,14 @@ test.startSection("Verify the vitals pop up opened automatically after interval time is elapsed") sec = interval*60 start_time = time.time() - utils.waitForGUI(sec) - close_btn = waitForObject(names.o_vitals_close_btn) + sec_count = 0 + while not(object.exists(names.o_vitals_close_btn)): + utils.waitForGUI(1) + sec_count += 1 end_time = time.time() + if sec_count in range(295, 301): + test.log("Dialog close button be visible after {}".format(sec)) + close_btn = waitForObject(names.o_vitals_close_btn) total_elapsed_time = end_time - start_time test.log("Total elapsed time : {}".format(total_elapsed_time)) test.compare(close_btn.visible, VISIBLE, "Dialog close button should be visible after the vitals pop up is opened automatically")