Index: suite_leahi/shared/scripts/configuration/navigation.py =================================================================== diff -u -r3668d4a9747b75c20be05a1245edb041cb91cc4b -r1847777089b517d342e407db9dd8d0be611c2232 --- suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 3668d4a9747b75c20be05a1245edb041cb91cc4b) +++ suite_leahi/shared/scripts/configuration/navigation.py (.../navigation.py) (revision 1847777089b517d342e407db9dd8d0be611c2232) @@ -4,8 +4,8 @@ from leahi_dialin.ui.td_messaging import TD_Messaging from leahi_dialin.common.td_defs import TDOpModes, TDStandbyStates from configuration import config, utility -from configparser import ConfigParser -from pathlib import Path +from configparser import ConfigParser +from pathlib import Path td_simulator = TD_Messaging() @@ -90,12 +90,13 @@ """ 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") - value = get_ini_value("/home/denali/Public/luis/config/configurations/Settings/System.conf", section ="AdvancedMode", key ="AdvancedMode") - standard = stepnames[1:] + SYSTEM_PATH = Path.home() / config.CONFIGURATIONS_PATH / "Settings/System.conf" + 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))