- Platform : iOS 10.2
- Appium version : 1.6.1
- Emulator/Simulator or Real Device : Simulator
- Client langauage (language binding) : Java
- OS : Mac
Hi,
So i am trying to access a single row from a list. However since upgrading to appium 1.6.1 , XCUITest and Xcode 8 every list element now has the entirety of the list elements in the name or label string. Below is a before and after.
This is how the driver.getPageSource() used to show a single row:
<UIAElement name="productImage" label=" B" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0/10/2" x="16.5" y="147" width="50" height="50">
<UIAStaticText name="B" label="B" value="B" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0/10/2/0" x="35" y="160" width="13" height="24">
</UIAStaticText>
</UIAElement>
<UIAStaticText name="productName" label="bottle cap" value="bottle cap" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0/10/3" x="83" y="166" width="199" height="14.5">
</UIAStaticText>
<UIAStaticText name="price" label="£70.40" value="£70.40" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0/10/4" x="302.5" y="164" width="62.5" height="16.5">
</UIAStaticText>
Then this is how the driver.getPageSource() displays the exact same page , there has been no change to the code
<XCUIElementTypeOther name=" In progress Customers ! Customer Details SHOW ALL k HOME G EMAIL F ADDRESS Statistics PAYMENTS 0 ITEMS SOLD 0 PAYMENTS TOTAL £0.00 . SALES HISTORY ] SHOW ON MAP Details 7 " label=" In progress Customers ! Customer Details SHOW ALL k HOME G EMAIL F ADDRESS Statistics PAYMENTS 0 ITEMS SOLD 0 PAYMENTS TOTAL £0.00 . SALES HISTORY ] SHOW ON MAP Details 7 " value="" dom="" enabled="true" valid="true" visible="false" hint="" path="/0/0/0/0/0/0/0/0/0/1" x="180" y="0" width="1025" height="768">
These are both representations of a single row of a list. All of the other rows from the second example look exactly the same, minus varying amounts of white space.
Is this a problem with something i am doing, or is there a way around it?
Cheers.