|
Post by boyangli on Aug 21, 2015 7:59:11 GMT
I am trying to use LeftDrag to drag some object from left panel to the workspace in the middle. The target location is above the starting point. So the coordinates value looks like "100,10,700,-70", then LeftDrag execute failed. Does LeftDrag support negative value? Or something wrong when I use it in the case?
|
|
|
Post by leiwang on Aug 21, 2015 8:40:20 GMT
Yes, I think negative coordinates are supported. Could you send me the debug log by email? I want to check it, the debug log should be in your project folder something like debuglog.txt.
|
|
|
Post by leiwang on Aug 21, 2015 9:01:50 GMT
------ debug log shows ---------- [INFO 16:47:12.001:WebDriverEmbeddedHookDriver: SAFSEXpression evaluating: 100,10,700,-70 ] [DEBUG 16:47:12.002:WebDriverEmbeddedHookDriver: SAFSExpression BigDecimal NumberFormatException on '100,10,700,', java.lang.NumberFormatException ------------------------ As there is a minus symbol in your coordinates, it is automatically evaluated. We need to turn off the Expression or you can try quote("100,10,700,-70") to see if it work. Please refer to safsdev.freeforums.net/thread/16/sharing-quote-values-expect-calculation, where "Expression problem" is also addressed.
|
|
|
Post by boyangli on Aug 21, 2015 9:16:05 GMT
------ debug log shows ---------- [INFO 16:47:12.001:WebDriverEmbeddedHookDriver: SAFSEXpression evaluating: 100,10,700,-70 ] [DEBUG 16:47:12.002:WebDriverEmbeddedHookDriver: SAFSExpression BigDecimal NumberFormatException on '100,10,700,', java.lang.NumberFormatException ------------------------ As there is a minus symbol in your coordinates, it is automatically evaluated. We need to turn off the Expression or you can try quote("100,10,700,-70") to see if it work. Please refer to safsdev.freeforums.net/thread/16/sharing-quote-values-expect-calculation, where "Expression problem" is also addressed. Lei, quote works for the case, thanks! I am not aware of the minus in the coordinates still considered for calculation.
|
|