sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08419
Re: [Question #185780]: Handling dynamic objects
Question #185780 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/185780
Status: Open => Answered
RaiMan proposed the following answer:
--- i am not able to understand the use of log.txt file in 2nd solution?
You said, you want to click the next box on the next run of the script. The file is used to save the click of the last run, so if you run the script tomorrow, it will click the next box.
If you want to click all boxes during one script run, you need a loop.
--- I was trying some thing like this : X="English"
getRegionFromPSRM() is for internal use only and not guaranteed to persist in future releases.
Use instead:
box1 = find("English")
hover(box1)
box1 now is a Match object and can be used as Region and contains more
information than a Region about the find operation behind.
The features, functions and the API to use in the Sikuli IDE are here:
http://sikuli.org/docx/
The Sikuli feature find("some text") is still experimental and has many
oddities (see bug 710586).
--- use findAll()
You might use findAll() to find all checkboxes on the page. If you have them checked and unchecked, try to separate them using the similarity.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.