Index: shared/scripts/names.py =================================================================== diff -u -r049da74584fa3b0d57eae735de41e3324fd122db -r946a9c73f842097ea77985a3c5500fdb52381de0 --- shared/scripts/names.py (.../names.py) (revision 049da74584fa3b0d57eae735de41e3324fd122db) +++ shared/scripts/names.py (.../names.py) (revision 946a9c73f842097ea77985a3c5500fdb52381de0) @@ -74,7 +74,7 @@ #Water Sample button object o_water_sample_button = {"container": o_preTreatmentWaterSampleStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "WATER SAMPLE", "type": "Text", "unnamed": 1, "visible": True} #Back button object -o_back_button = {"container": o_preTreatmentWaterSampleStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "BACK", "type": "Text", "unnamed": 1, "visible": True} +o_water_sample_back_button = {"container": o_preTreatmentWaterSampleStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "BACK", "type": "Text", "unnamed": 1, "visible": True} #Pass button object o_pass_button = {"container": o_preTreatmentWaterSampleStack_PreTreatmentBase_TreatmentFlowBase_2, "text": "PASS", "type": "Text", "unnamed": 1, "visible": True} #Fail button object Index: tst_pre_treatment_water_sample/test.py =================================================================== diff -u -r0253307c311ba837dde52a0059b734d4015877d9 -r946a9c73f842097ea77985a3c5500fdb52381de0 --- tst_pre_treatment_water_sample/test.py (.../test.py) (revision 0253307c311ba837dde52a0059b734d4015877d9) +++ tst_pre_treatment_water_sample/test.py (.../test.py) (revision 946a9c73f842097ea77985a3c5500fdb52381de0) @@ -63,9 +63,9 @@ test.endSection() test.startSection("Verify the water sample screen for verification of BACK Button and NEXT Button") - test.compare(str(waitForObjectExists(names.o_back_button).text), config.BACK_BUTTON_TEXT,"Back button text should be {}".format(config.BACK_BUTTON_TEXT)) - test.compare(waitForObjectExists(names.o_back_button).enabled , True, "Back button should be enabled") - mouseClick(waitForObject(names.o_back_button)) + test.compare(str(waitForObjectExists(names.o_water_sample_back_button).text), config.BACK_BUTTON_TEXT,"Back button text should be {}".format(config.BACK_BUTTON_TEXT)) + test.compare(waitForObjectExists(names.o_water_sample_back_button).enabled , True, "Back button should be enabled") + mouseClick(waitForObject(names.o_water_sample_back_button)) test.compare(str(waitForObjectExists(names.o_next_button).text), config.NEXT_BUTTON_TEXT, "Next Button text should be {}".format(config.NEXT_BUTTON_TEXT)) test.compare(waitForObjectExists(names.o_next_button).enabled , True,"Next button should be enabled") mouseClick(waitForObject(names.o_next_button))