Hi,
I need to select 200 contact from contact list.I use this function I built to get to the contact name xPath and click on it.
public UiObject Contact(int index){
Contact = new UiSelector().xPath("//android.widget.TabHost[@index=‘2’]/android.widget.LinearLayout[@index=‘0’]/android.widget.FrameLayout[@index=‘2’]/android.widget.FrameLayout[@index=‘0’]/android.widget.ListView[@index=‘0’]/android.widget.RelativeLayout[@index=’"+index+"’]").makeUiObject();
return Contact;
}
My problem is that only the first 10 contact are shown on the screen when i enter to the screen and after I select them the test crashes because it can not reach the next contact in line because it is not displayed on the screen and I do not have the xPath to it
How can I overcome this and choose 200 contact?
I also attach a screenshot of the screen
Thanks !!