Scroll or Drag using KIF iOS Integration Testing Framework

1,257 views
Skip to first unread message

Laura Fernández

unread,
May 28, 2014, 7:13:01 PM5/28/14
to kif-fr...@googlegroups.com
Hello!
I'm running automation scripts to test a mobile app, but to can tap on a button I need to scroll to the last element to the window. How I can simulate the scroll or the drag? 

Tony Mann

unread,
May 28, 2014, 8:14:47 PM5/28/14
to kif-fr...@googlegroups.com
If the last element has an accessibility label, then just call waitForElementWithAccessibilityLabel on the element and it will be scrolled into view automatically. Otherwise call scrollViewWithAccessibilityLabel yourself. 

Tony

On May 28, 2014, at 4:13 PM, Laura Fernández <lola...@gmail.com> wrote:

Hello!
I'm running automation scripts to test a mobile app, but to can tap on a button I need to scroll to the last element to the window. How I can simulate the scroll or the drag? 

--
You received this message because you are subscribed to the Google Groups "KIF iOS Automated Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kif-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

abhinavn

unread,
May 31, 2014, 2:53:08 AM5/31/14
to kif-fr...@googlegroups.com
Did you give a try swipViewWithAccessibilityLabel? it has options to swipe up, dow, left right. May it can be of help?
Reply all
Reply to author
Forward
0 new messages