Index: tst_main_treatment_pressure/test.py =================================================================== diff -u -r59650aded821ddd00b4e431cb6a44a11484dd23d -r3b3fe8a3399215635e163e82af0e13934a48d0c9 --- tst_main_treatment_pressure/test.py (.../test.py) (revision 59650aded821ddd00b4e431cb6a44a11484dd23d) +++ tst_main_treatment_pressure/test.py (.../test.py) (revision 3b3fe8a3399215635e163e82af0e13934a48d0c9) @@ -137,11 +137,9 @@ low_handler_parent = object.parent(waitForObjectExists(names.o_arterial_text_low)) low_handler_children = object.children(low_handler_parent) low_handler = low_handler_children[-2] - width = pyInt(low_handler.width) - height = pyInt(low_handler.height) #adjusting the width and height of arterial low limit slider to click on the center of the object - width = width - 15 - height = height - 10 + width = pyInt(low_handler.width) - 15 + height = pyInt(low_handler.height)- 10 if arterial_min == art_low: test.passes("Arterial range minimum is already set to {}".format(art_low)) elif arterial_min < art_low: @@ -194,11 +192,9 @@ high_handler_parent = object.parent(waitForObjectExists(names.o_arterial_text_low)) high_handler_children = object.children(high_handler_parent) high_handler = high_handler_children[-1] - width = pyInt(high_handler.width) - height = pyInt(high_handler.height) #adjusting the width and height of arterial high limit slider to click on the center of the object - width = width - 15 - height = height - 10 + width = pyInt(high_handler.width) - 15 + height = pyInt(high_handler.height) - 10 if arterial_max == art_high: test.passes("Arterial range maximum is already set to {}".format(art_high)) elif arterial_max < art_high: @@ -251,11 +247,9 @@ low_handler_parent = object.parent(waitForObjectExists(names.o_venous_text_low)) low_handler_children = object.children(low_handler_parent) low_handler = low_handler_children[-2] - width = pyInt(low_handler.width) - height = pyInt(low_handler.height) #adjusting the width and height of venous low limit slider to click on the center of the object - width = width - 15 - height = height - 10 + width = pyInt(low_handler.width) - 15 + height = pyInt(low_handler.height) - 10 if ven_min == ven_low: test.passes("Venous range minimum is already set to {}".format(ven_low)) elif ven_min < ven_low: @@ -307,11 +301,9 @@ high_handler_parent = object.parent(waitForObjectExists(names.o_venous_text_low)) high_handler_children = object.children(high_handler_parent) high_handler = high_handler_children[-1] - width = pyInt(high_handler.width) - height = pyInt(high_handler.height) #adjusting the width and height of venous high limit slider to click on the center of the object - width = width - 15 - height = height - 10 + width = pyInt(high_handler.width) - 15 + height = pyInt(high_handler.height) - 10 if ven_max == ven_high: test.passes("Venous range maximum is already set to {}".format(ven_high)) elif ven_max < ven_high: