Index: suite_leahi/shared/scripts/configuration/navigation.py =================================================================== diff -u -r8bfb02b2b8e50dccd822549c11d340df033744c7 -r4045057acb2ebda3ca38376e140baa6c48b7231a --- suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 8bfb02b2b8e50dccd822549c11d340df033744c7) +++ suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 4045057acb2ebda3ca38376e140baa6c48b7231a) @@ -30,21 +30,6 @@ ), ) -def navigate_to_device_settings_using_service_password(): - td_simulator.td_operation_mode(TDOpModes.MODE_STAN.value, 0) - main_menu_container = squish.waitForObject(names.o_mainMenu_MainMenu, 2000) - squish.mouseClick(utility.findChildByText(main_menu_container, config.SETTINGS)) - - td_simulator.td_operation_mode(TDOpModes.MODE_SERV.value, 0) - grid_container = squish.waitForObject(names.o_DeviceSettingsGrid) - squish.mouseClick(utility.findChildByText(grid_container, config.SERVICE)) - - input_field = squish.waitForObject(names.o_userConfirmation_TextInput, 1000) - - squish.type(input_field, config.DEFAULT_SERVICE_PASSWORD_RAW) - confirm_button = squish.waitForObject(names.o_userConfirmation_ConfirmButton, 1000) - squish.mouseClick(confirm_button) - def get_ini_value(conf_path: str , section: str, key: str): """ Method to get the advanced option from the System.conf file @@ -73,19 +58,21 @@ """ test.startSection("Method to navigation in the pretreatment page ") - stepId = squish.waitForObjectExists(names.o_preTreatmentStack_stepIndicator_StepIndicator) + stepId = squish.waitForObjectExists(names.o_preTreatmentStack_stepIndicator_StepIndicator) stepnames = utility.findAllObjectsById(stepId, "_text") SYSTEM_PATH = application_init.configuration_folder_path() + "Settings/System.conf" - value = get_ini_value(SYSTEM_PATH, section ="AdvancedMode", key ="AdvancedMode") - standard = stepnames[1:] + value = get_ini_value(SYSTEM_PATH, section ="AdvancedMode", key ="AdvancedMode") + standard = stepnames[1:] if value == "0": - standard = stepnames[3:] + standard = stepnames[3:] Nextbutton = utility.setObjectText(obj =names.o_preTreatmentStack_Text, text =config.NEXT) squish.mouseClick(squish.waitForObject(Nextbutton)) autoLoadbutton = utility.setObjectText(obj =names.o_preTreatmentStack_Text, text ="Auto Load") squish.mouseClick(squish.waitForObject(autoLoadbutton)) td_simulator.td_blood_set_auto_load_response(vRejectionReason = 0) + stepId = squish.waitForObjectExists(names.o_preTreatmentStack_stepIndicator_StepIndicator) + values = utility.findAllObjectsById(stepId, "_text") for input_field in standard: test.log(str(input_field.text)) if str(input_field.text) == "Water Sample": @@ -98,3 +85,4 @@ squish.mouseClick(Nextbutton) test.endSection() + \ No newline at end of file