Index: suite_leahi/shared/scripts/configuration/navigation.py =================================================================== diff -u -r3240e0c4aa8e9c80663df4e810734c73813d15d7 -r3668d4a9747b75c20be05a1245edb041cb91cc4b --- suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 3240e0c4aa8e9c80663df4e810734c73813d15d7) +++ suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 3668d4a9747b75c20be05a1245edb041cb91cc4b) @@ -35,6 +35,33 @@ config.DEVICE_SETTINGS_SCREEN_TITLE_TEXT ), ) + +def navigate_to_device_settings_using_service_password(): + td_simulator.td_operation_mode(TDOpModes.MODE_SERV.value, 0) + grid_container = squish.waitForObject(names.o_DeviceSettingsGrid) + service_option = utility.findChildByText(grid_container, "Service") + + if service_option is not None: + squish.mouseClick(service_option) + + headerbar_container = squish.waitForObject(names.o_headerBar_HeaderBar) + service_screen_headerbar_title_text = utility.findChildByText( + headerbar_container, "Service" + ) + if service_screen_headerbar_title_text is not None: + test.compare( + service_screen_headerbar_title_text.text, + config.SERVICE_SCREEN_TITLE_TEXT, + "{} screen is displayed and Comparison of Device Settings Screen Title text".format( + config.SERVICE_SCREEN_TITLE_TEXT + ), + ) + 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