sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34566
[Bug 1495416] Re: MyRegion.click() don't work after MyRegion.highlight()
Currently all highlights must be terminated before the next find op
(which is implicitly done with
MyRegion.click("Button_OK_In_winver.png")).
MyRegion.highlight() places an overlay over the screen with the region
content and the highlight frame. The button might be found there, but
the click is consumed by the overlay with no reaction (and hence blocked
for the app underneath).
Eventually I will add that all active highlights are stopped before the
next find op.
BTW:
- there is a new Settings option to highlight every find result until switched off again (good for testing, sorry not yet in the docs):
Settings.Highlight = False # default, switch on with True
Settings.DefaultHighlightTime = 2f # default seconds
Settings.WaitAfterHighlight = 0.3f # default to compensate window animations
** Changed in: sikuli
Status: Invalid => In Progress
** Changed in: sikuli
Importance: Undecided => Medium
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 2.0.0
** Summary changed:
- MyRegion.click() don't work after MyRegion.highlight()
+ [1.1.0] click(ButtonInMyRegion) does not work after MyRegion.highlight() --- highlight has to be stopped before
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1495416
Title:
[1.1.0] click(ButtonInMyRegion) does not work after
MyRegion.highlight() --- highlight has to be stopped before
Status in Sikuli:
In Progress
Bug description:
With Java 8 Build 60 and Sikulix "1.1.0.201509110100" under a French windows 2008 R2.
result = App("winver").open()
if (result == None):
raise Exception("Application not openned")
MyRegion=find("Winver_Screen.png")
MyRegion.highlight()
MyRegion.click("Button_OK_In_winver.png")
popup("End")
==> The "winver" app don't close. ( and the Highlight disappear, which is also not expected )
Same without the highlight is ok
Same with the highlight twice is ok ( add and remove highlight )
Same with an highlight(2) is ok ( highlight for 2 seconds )
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1495416/+subscriptions
References