RaghuSairam
RaghuSairam

Reputation: 21

How to perform triple tap on element in appium 1.6

I am trying to achieve a triple tap action on an element(IOS) less than 2 seconds using appium 1.6, tried below code but it is throwing an error.

new IOSTouchAction(driver).Tap(ele).Tap(ele).Tap(ele).perform();

Or:

for (int i = 0; i < 3; i++) 
{
  new IOSTouchAction(driver).tap(element).perform();
}

But no use.

Please let me know if anyone has achieved this using above specs, thanks in advance.

Upvotes: 1

Views: 501

Answers (1)

David Ep
David Ep

Reputation: 270

The problem here is not with your code but with apple's Instruments.

It's a known issue that Instruments is forcing a 1 second delay between each action. to solve this try and configure "Instruments without delay". it worked for me!

https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/iwd_xcode7.md

After configuring this, i believe that your "for" loop will work as expected

Upvotes: 1

Related Questions