Is there a way to control a xcuielement swipe?

In my UI test, I am trying to adjust several settings, but some of those settings are unreachable via the new scripting.


Say I can see five settings on the first screen.

I want to change a seventh setting on the "next" screen, but when I swipe up on a xcuielement, it takes me _way_ past the seventh setting, so that the UI test can no longer "see" it.

Is there any way to adjust the swipe rate?

If I understand correctly, you're trying to access an element further down in a list that's not visible in the initial screen?


If I understood you correctly, you shouldn't have to swipe and reveal onto the screen before you tap on that element. Just specify the element in the list to tap and it should find it automatically for you.


For instance, if it's a list of elements in a table format, you can identify each element by its staticTexts. So you can use:

[app.tables[@"Name of Table View"].staticTexts[@"Element Name"] tap];


It should scroll to the element and tap on it for you.

Thanks for your reply.


Unfortunately, that doesn't seem to work all of the time. It sometimes finds the element, and sometimes it doesn't.


For now, I have added a page up/down button to get me to the right "screen"

Is there a way to control a xcuielement swipe?
 
 
Q