sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17167
Re: [Question #223202]: Automating expand-collapse buttons using Sikuli
Question #223202 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/223202
Status: Answered => Solved
testdrive confirmed that the question is solved:
Found out a solution for this, though it won't solve the 'last possible challenge' in the above comment.
This was my previous code :
for i in docsReg.findAll("folders.png"):
count+=1
docsReg.exists("folders.png").highlight(2)
doubleClick(i)
wait(1)
The problem with this code is that this one identifies all the initial
locations of the folders.png symbols but won't identify the new
locations after an expansion occurs. For that what I did is that do one
expansion, go somewhere outside the region and click, come again inside
the region(this time again it checks for all the locations of the
folders.png, which include the newly changed locns) and manipulate. And
you have to do this after every click on an expansion button.
So here goes my new code snippet:
for i in docsReg.findAll("folders.png"):
click("outside.png") # somewhere outside the docsReg
count+=1
docsReg.exists("folders.png").highlight(2)
doubleClick(folders.png)
wait(1)
Seems to work well for me !!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.