[1.1.0-Beta1] click() fails on anything but Screen(0) - fixed in Beta2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
SikuliX Setup Build: 1.1.0-Beta1 2014-05-30-18
My sikuli script is able to locate the button fine and highlight even highlights the correct button, however click fails
Thinking that click was failing due to color change, I explicitly grabbed the location (coordinates) from the match and passed it to click but click still fails
I have tried to put in wait(), set ClickDelay, used hover before clicking: nothing works.
My script fails if it runs on anything but Screen(0)
If I keep the screen I'm trying to click on on my primary display, the script executes just fine!
The issue is that the script outputs all the correct coordinates as per Screen(1) but the click actually happens on Screen(0)!
Here is what my code looks like:
Settings.
Settings.ActionLogs = True
Settings.InfoLogs = True
Settings.DebugLogs = True
SCR1 = Screen(1)
p1 = Pattern(
p2 = Pattern(
goOn = True
while goOn:
try:
x1 = SCR1.find(
print x1
#hover(x1)
goOn = False
except FindFailed:
x2 = SCR1.find(
x2l = x2.getTarget()
print x2l
x2h = x2.hover()
print x2h
x2h = x2.hover()
print x2h
# icon on hover becomes darker
#sleep(100)
x2c = x2.doubleClick()
print x2c
wait(0.5)
x2c = x2.click(p2)
print x2c
goOn = False
x2c = x2.mouseDown(
print x2c
x2c = x2.mouseUp(
print x2c
Changed in sikuli: | |
importance: | High → Critical |
summary: |
- [1.1.0-Beta1] click() fails on anything but Screen(0) + [1.1.0-Beta1] click() fails on anything but Screen(0) - fixed in Beta2 |
I am currently working hard on a solution for this problem - nearly fixed ;-)