Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r9173ebd0962929fe8ab341b7f731d6adb39a0368 -ra309546f47434a0a2a22de97e24947d252b59106 --- shared/scripts/configuration/utility.py (.../utility.py) (revision 9173ebd0962929fe8ab341b7f731d6adb39a0368) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision a309546f47434a0a2a22de97e24947d252b59106) @@ -245,13 +245,17 @@ def erase_entered_value(input_field): """ - Method to erase the entered value - @param input_field - (obj) object of input field + Method to erase the entered value + @param input_field - (obj) object of input field """ - input_field = squish.waitForObject(input_field).text - for value in input_field: + test.startSection("Erasing value") + input_field= squish.waitForObject(input_field) + entered_value = str(input_field.text) + for value in range(len(entered_value)+1): + utils.waitForGUI(1) squish.mouseClick(squish.waitForObjectExists(names.o_back_space_key)) - test.log("user cleared pre-used value") + test.compare(str(input_field.text), "", "Input field should be empty") + test.endSection()