Index: suite_leahi/shared/scripts/configuration/navigation.py =================================================================== diff -u -r4e2b2a08fb10fb528e782a505eaab19f63874cc4 -rfb27385d1c510f6d3b433ace7e2f2e7d5dda4012 --- suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 4e2b2a08fb10fb528e782a505eaab19f63874cc4) +++ suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision fb27385d1c510f6d3b433ace7e2f2e7d5dda4012) @@ -32,4 +32,29 @@ "{} screen is displayed and Comparison of Device Settings Screen Title text".format( config.DEVICE_SETTINGS_SCREEN_TITLE_TEXT ), - ) \ No newline at end of file + ) + +def navigation_pageIndicator_step(vStep_name): + """ + Navigate to the specified page using the step indicator component. + + This method selects the given step from the page step indicator + Args: + vStep_name (str): The name of the step to navigate to as displayed + in the step indicator. + + """ + test.startSection("Method to navigation in the pretreatment page ") + stepId = squish.waitForObjectExists(names.o_preTreatmentStack_stepIndicator_StepIndicator) + values = utility.findAllObjectsById(stepId, "_text") + for index, input_field in enumerate(values[2:]): + test.log(str(index)); + test.log(str(input_field.text)) + if str(input_field.text) == vStep_name: + test.log("Reached the target step") + break + else: + Nextbutton = utility.setObjectText(obj =names.o_preTreatmentStack_Text, text =config.NEXT) + squish.mouseClick(Nextbutton) + test.endSection() + \ No newline at end of file