How to perform a Tap using Appium 2.0 C#

130 Views Asked by At

I miss touchactions but they are deprecated so I want to understand how to write them with W3C standards. I want to move to a location and then tap that location. Here is what I am trying but its not performing:

 Actions actions = new Actions(_IOSdriver);
 actions.MoveToLocation(263, 495).Click();
 Thread.Sleep(2000);
 actions.Build().Perform();
1

There are 1 best solutions below

1
Tony_Stark On

Did you try using the mobile: tap command?

Link for reference: https://appium.readthedocs.io/en/latest/en/writing-running-appium/ios/ios-xctest-mobile-gestures/