non-continuous wait
I found that using "wait" seems to be chewing a lot of CPU cycles and impacts the underlying app I am trying to test.
When I run Sikuli and the test application on separate machines there are no problems. However when I run the sikuli and the test app on the same machine, sikuli slows down the test app significantly.
I narrowed the problem down to the "wait" statement. I timed the test app when I did wait(non-
Of course I can write my own "mywait" that will do something like:
attempts=NN
while not exists(img) and attempts>0:
sleep(2)
attempts=
Ideally I would like to be able to tell "wait" to examine screen at certain interval, not continuously. Is this possible?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: