From f5b8ce45fc5bbc1f75b8fe24dee28ae5f65bc587 Mon Sep 17 00:00:00 2001 From: shravanrajrk Date: Mon, 16 Jun 2014 19:36:35 +0530 Subject: Update value.py In def decrease() function the following lines was copied from increase function if valuei.currentValue >= valuei.minimumValue: raise LdtpServerException('Maximum limit reached') hence the function was always throwing exception when you try to decrease the value of slider/spin control so changed to if valuei.currentValue <= valuei.minimumValue: raise LdtpServerException('Minimum limit reached') --- ldtpd/value.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldtpd/value.py b/ldtpd/value.py index a99f9b0..aa3b277 100644 --- a/ldtpd/value.py +++ b/ldtpd/value.py @@ -466,7 +466,7 @@ class Value(Utils): i = 0 flag = False while i < iterations: - if valuei.currentValue >= valuei.minimumValue: + if valuei.currentValue <= valuei.minimumValue: raise LdtpServerException('Maximum limit reached') valuei.currentValue -= 1.0 time.sleep(1.0/100) -- cgit v1.2.3