sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27835
[Bug 1362465] [NEW] "dragDrop" method doesn't work in jython
Public bug reported:
I use jython to implement keywords for robot framework.
When I create drag drop feature, it does't work at all.
Here is my code.
def findDragDrop(self, srcRegion, destRegion, similar=0.7):
# still region are three types screen app part of app.
src = find(Pattern(common.cfgImageLibrary + "/" + srcRegion).similar(similar))
dest = find(Pattern(common.cfgImageLibrary + "/" + destRegion).similar(similar))
self.log.passed("Image found!")
Settings.DelayAfterDrag = 1
Settings.DelayBeforeDrop = 1
Settings.MoveMouseDelay = 3
dragDrop(src, dest)
I also tried mouseMove() method, still doesn't work. It seems that when
execute dragDrop, the mouse just cannot get focus, then the window is
not moved.
Can you give me some suggestions?
I am using the sikuli-java.jar package
** Affects: sikuli
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1362465
Title:
"dragDrop" method doesn't work in jython
Status in Sikuli:
New
Bug description:
I use jython to implement keywords for robot framework.
When I create drag drop feature, it does't work at all.
Here is my code.
def findDragDrop(self, srcRegion, destRegion, similar=0.7):
# still region are three types screen app part of app.
src = find(Pattern(common.cfgImageLibrary + "/" + srcRegion).similar(similar))
dest = find(Pattern(common.cfgImageLibrary + "/" + destRegion).similar(similar))
self.log.passed("Image found!")
Settings.DelayAfterDrag = 1
Settings.DelayBeforeDrop = 1
Settings.MoveMouseDelay = 3
dragDrop(src, dest)
I also tried mouseMove() method, still doesn't work. It seems that
when execute dragDrop, the mouse just cannot get focus, then the
window is not moved.
Can you give me some suggestions?
I am using the sikuli-java.jar package
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1362465/+subscriptions
Follow ups
-
[Bug 1362465] Re: [1.0.1] Jython/RFW: dragDrop method doesn't work
From: RaiMan, 2014-08-29
-
[Bug 1362465] Re: [1.0.1] Jython/RFW: dragDrop method doesn't work
From: Xiaokunhou, 2014-08-29
-
[Bug 1362465] Re: [1.0.1] Jython/RFW: dragDrop method doesn't work
From: Xiaokunhou, 2014-08-29
-
[Bug 1362465] Re: [1.0.1] Jython/RFW: dragDrop method doesn't work
From: RaiMan, 2014-08-29
-
[Bug 1362465] Re: [1.0.1] Jython/RFW: dragDrop method doesn't work
From: Xiaokunhou, 2014-08-29
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: RaiMan, 2014-08-28
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: RaiMan, 2014-08-28
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: Xiaokunhou, 2014-08-28
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: Xiaokunhou, 2014-08-28
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: Xiaokunhou, 2014-08-28
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: RaiMan, 2014-08-28
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: RaiMan, 2014-08-28
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: Xiaokunhou, 2014-08-28
-
[Bug 1362465] Re: [1.0.1] Jyrthon/RFW: dragDrop method doesn't work
From: Xiaokunhou, 2014-08-28
-
[Bug 1362465] Re: "dragDrop" method doesn't work in jython
From: RaiMan, 2014-08-28
-
[Bug 1362465] [NEW] "dragDrop" method doesn't work in jython
From: Xiaokunhou, 2014-08-28
References