I'm encountering a real mess of a problem and can't seem to find an answer anywhere.
I have an android application where a table of elements is populated dynamically and information is filled in by what the application receives from a server call. Due to this, I have to work with what appium sees and what the server populates, instead of being able to assign identifiers to the elements. The second part of this problem is that since the element is off screen, Appium cannot locate it, and when I (manually) scroll the device so the element is on screen, all of the xpaths are erased and redrawn, so I don't have a static reference point to the element I want.
Ex:
<root>
<linearlayout>
<table>
<el1>
<el2>
<el3>
<el4>
<el5>
<el6>
<el7>
<el8>
<el9>
<el10>
The screen displays el1 - el5, but I need to find el6. However, when the screen scrolls, el6 displays in xpath as el1.
Can anyone help? This is driving me insane.