sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35680
[Question #275137]: How to Scroll down in a Screen and search for a Particular Image using Sikuli
New question #275137 on Sikuli:
https://answers.launchpad.net/sikuli/+question/275137
Am new to Sikuli and trying to Automate Citirx Application. Need Help
Am trying to select a user role in a screen, The screen has multiple roles and hence i need to scroll down the screen and search for a particular Role and click the Role.
I have Captured image of a Particular Role that i need to select and used below Code.
What am trying to do:
1) In the Screen there are 150+ User Roles, i need to select a particular image
2) i have captured a image which is at bottom of the screen
3) i need to scroll the screen and search if the exact image is available, if available i need to select the image, else
4) Scroll the screen and search for the Image again.
Below is the Code an Trying:
Creating a Method:
public static boolean clipExist(Screen screen, String clip )
{
Match m = screen.exists(clip);
if(m != null)
{
return true;
}
else
{
return false;
}
}
Using the Method:
while(! clipExist(screen, "C:\\Users\\Satish_D1\\workspace\\Sikuli Demo\\Images\\Roles\\UK\\ENTP\\GEDIS_SALES_SUPPORT_ORL_CPF2.0_UK_ENTP.PNG"))
{
screen.wheel(1 , 3);
if(clipExist(screen, "C:\\Users\\Satish_D1\\workspace\\Sikuli Demo\\Images\\Roles\\UK\\ENTP\\GEDIS_SALES_SUPPORT_ORL_CPF2.0_UK_ENTP.PNG"))
{
screen.doubleClick("C:\\Users\\Satish_D1\\workspace\\Sikuli Demo\\Images\\Roles\\UK\\ENTP\\GEDIS_SALES_SUPPORT_ORL_CPF2.0_UK_ENTP.PNG",0);
break;
}
}
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.