sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03368
[Question #161693]: How to use DragDrop function in java
New question #161693 on Sikuli:
https://answers.launchpad.net/sikuli/+question/161693
I am using Sikuli in JAVA
i have image of scroll bar(ScrollRight)...& endpoint..end point is not visible So i want to scroll till it gets visible.
i have tried below code..but its not working :(
Sample code:
Pattern ScrollRight = new Pattern(imagePath + "android/imgs/Right_ScrollBar.png");//Scroll bar
Pattern ScrollEnd = new Pattern(imagePath + "android/imgs/Right_ScrollEnd.png");//End point..Till here i want to scroll..Endpoint is dynamic
Region wait=s.exists(ScrollEnd,1);
count=0;
if(wait==null &&count<5)
{
Region z=s.find(ScrollRight);
Region k=z;
k.x=z.x-100;
s.dragDrop(z,k,0);
wait=s.exists(ScrollEnd,1);
count++;
}
Please help me out.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.