sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55432
[Bug 1887941] Re: SikuliXception in exists function
I see that :
In sikuli 1.1.1. -> _results = Vision.find(_findInput); --in-- Region.find(Image)
is now replaced by
In Sikuli 2.0.x -> _results = Finder2.find(_findInput); --in--
Region.find(Image)
Vision do not throw exception in any case.
Whereas Finder2.find throws SikuliXception (a RuntimeException)
This change in behavior is causing many breaks in code. Already one more
IR was raised related to SikuliXception .
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1887941
Title:
SikuliXception in exists function
Status in Sikuli:
New
Bug description:
Sikuli version : 20x
OS: win 10
reduced code for issue:
r = Region(0, 0, 5, 5)
r.exists(r"anyLittleBigImage.png")
Throws SikuliXception. Traces are:
[error] script [ sikulitemp-737716647910362225 ] stopped with error in line 2
[error] org.sikuli.script.SikuliXception ( org.sikuli.script.SikuliXception: image to search (849, 335) is larger than image to search in (5, 5) )
[error] --- Traceback --- error source first
line: module ( function ) statement
2: main ( <module> ) r.exists(r"anyLittleBigImage.png")
[error] --- Traceback --- end --------------
Expected behavior: as per documentation, exists should either return
None or Match found.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1887941/+subscriptions
References