Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r0f8c72cdb9ebe10b644674e3d053f81911c867cb -rc7d46d8afe80cc0751794f426e1000e0be7e93a7 --- shared/scripts/configuration/utility.py (.../utility.py) (revision 0f8c72cdb9ebe10b644674e3d053f81911c867cb) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision c7d46d8afe80cc0751794f426e1000e0be7e93a7) @@ -131,33 +131,35 @@ return str(date.strftime(date_format)) -def enter_keypad_value(entry, input_field): +def enter_keypad_value(entry): """ Method to enter user desired value using keypad + @param entry: User expected value """ test.startSection("Enter {entry}".format(entry=entry)) - input_field = waitForObject(input_field) for value in entry: - test.log("Entering {value}".format(value=value)) value = builtins.int(value) - squish.mouseClick(waitForObject(names.keypad_input(key_value=value))) + key_val = waitForObject(names.keypad_input(key_value=value)) + squish.mouseClick(key_val) utils.waitForGUI(1) test.endSection() def erase_entered_value(input_field): """ Method to erase the entered value + @param input_field - object of input field """ - input_field = waitForObject(input_field) + input_field= waitForObject(input_field) entered_value = input_field.text.toUtf8().constData() + test.startSection("Erasing {entered_value}".format(entered_value)) for value in entered_value: - squish.mouseClick(input_field) utils.waitForGUI(1) - squish.mouseClick(waitForObject(names.o_back_space_key)) + squish.mouseClick(waitForObjectExists(names.o_back_space_key)) - test.compare(entered_value, "", "Input field should be empty") + test.compare(input_field.text.toUtf8().constData(), "", "Input field should be empty") + test.endSection()