jeudi 19 février 2015

How to click on a particular Checkbox using sikuli


Vote count:

0




I'm very new to Sikuli.I was trying to automate a desktop application,but i'm stuck with an issue .I'm unable to check the checkbox. The code that i have used is



Pattern firstCheckBox = new Pattern("images/FeedsList/abc.PNG");
Pattern checkBox = new Pattern("images/FeedList/checkbox.PNG");
Region r = feedSelectionScreen.find(firstCheckBox);
r.hover();
Region leftRegion = r.left();
if(leftRegion.exists(checkBox)!=null){
System.out.println("Hippee found check box oon left region");
leftRegion.click(checkBox);
}


Here firstcheckbox pattern is referring to the word image after the checkbox and checkbox is referring to the checkbox image. If anyone could help me on this,it is of great help to me. Thanks in advance.



asked 29 secs ago







How to click on a particular Checkbox using sikuli

Aucun commentaire:

Enregistrer un commentaire