user3818397
user3818397

Reputation: 1

Finding elements in ListView with Appium v.1.2.0

WebElement list = explicitWaitForElement(driver, By.xpath("//android.widget.ListView[1]"));
List<WebElement> weekObjectList = list.findElements(By.xpath("//android.widget.RelativeLayout"));

The above code is not working for me. Looks like there are some issues with Appium v1.2.0. Let me know if we have any workaround.

Upvotes: 0

Views: 3735

Answers (1)

Abhishek Swain
Abhishek Swain

Reputation: 1054

Please Try with the following:

List<WebElement> weekObjectList = driver.findElements(By.xpath("//android.widget.ListView[1]//android.widget.RelativeLayout"));

Upvotes: 1

Related Questions