Hello,
I’m experiencing an issue when dealing with some complex xpaths in Appium.
At the attempt to locate the following element:
“findElement(By.xpath (”//android.widget.RelativeLayout/*[contains(@text,‘abc’)]/following::android.widget.TextView[1]")); "
I get the error: “ClassCastException: java.util.ArrayList$ListItr cannot be cast to org.eclipse.wst.xml.xpath2.processor”.
The reason for that error is the “/following::android.widget.TextView[1]”".
Once I remove that part from the above xpath, the error goes away.
Unfortunately there’s no other identifiers available for that element.
Please advise on the issue.