本文介绍了用Sikuli拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用Sikuli进行拖放。我想在任何其他方向(上,下,左,右)拖动一些固定数量的像素。



这看起来应该可以工作: p>

  t = find(1325249963143.png)
dragDrop(t,[tx + 100,ty + 100])

Sikuli IDE日志说

  [log] DRAG(741,525)to null 

但元素不是拖拽。



这样做很好:

  dragDrop(1325249963143 .png,1325251471990.png)

日志说

  [log] DRAG(741,525)至(507,490)

我做错了什么?



环境:Mac OS X 10.7.2,Sikuli X-1.0rc3(r905)

解决方案

只能在这里打个招呼 - 替代编码:

  dragDrop(t,t.offset(Location(100,100)))


I am having trouble using drag and drop with Sikuli. I would like to drag something in any other direction (up, down, left, right) for a fixed number of pixels.

This looks like it should work:

t = find("1325249963143.png")
dragDrop(t, [t.x + 100, t.y + 100])

Sikuli IDE log says

[log] DRAG (741,525) to null

but the element is not dragged.

This works just fine:

dragDrop("1325249963143.png", "1325251471990.png")

The log says

[log] DRAG (741,525) to (507,490)

What am I doing wrong?

Environment: Mac OS X 10.7.2, Sikuli X-1.0rc3 (r905)

解决方案

only to say hello here - an alternative coding:

dragDrop(t, t.offset(Location(100, 100)))

这篇关于用Sikuli拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 06:44