TestProject Forum

Swipe to an iOS-element using the Accessibility id

Hi, Is it possible to Swipe (down) to an elements with the help of Accessibility ID instead of XPATH for iOS elements?

The reason is: the xpath generated by recorder looks like this: //XCUIElementTypeCell[6]/XCUIElementTypeStaticText[2] (I can try with //XCUIElementTypeStaticText[@label = ‘labelName’]
(not properly readable)

Thanks for the help

Swipe to element accept an element like in the below image

This means you can simply edit the element this step accepts to fit your needs, you can remove any xpath and only leave accessibilityID if you wish to from this screen.

Let me know if this solve your issue