Hi..
I would be need your help in getting date selected from a specific kind of calendar .. Here there is a calendar in which date, month and year is scrolable seperatly as you seen in the attached screen shot..
i use the below code only to select year for now, so it will swipe till the expected year will be display
But It scrolls only for the date even the xpath i defined for year only ..
as
@FindBy(how = How.XPATH, using ="//android.widget.NumberPicker[@bounds='[448,436][576,796]' , and @index='2']")
private WebElement date_yearlist;
List list = date_yearlist.findElements(By.className("android.widget.Button"));
for(int i=0; i<list.size();i++)
{
System.out.println("enter in to the loop");
String date2="";
date2= list.get(i).getText();
System.out.println(date2);
if(date2.equals(expDateValue))
{
list.get(i).click();
r1=true;
System.out.println("if is working");
break;
}
else
{
swipe up() ;//Method to swipe to up in the year list
}
please have look in to the attached screen shot ..
@willosser
@slipy12
@Aleksei @crujzo ...
appreciate for your help.. always..
Thank you...