I'm trying to find all the relative layout elements below a linear layout element.I used the below ommand in xpath.
//android.widget.ExpandableListView[1]/android.widget.LinearLayout[text() = 'List of devices']/following-sibling::android.widget.RelativeLayout
Appium is returning me " Failed to locate element "
Is this the correct syntax of using following sibling or is there any alternative way of finding those elements with any other locator strategy??