Hey guys,
I’m trying to automate a react JS hybrid mobile app.
The developer has used “touchtap” instead of click() so i wanted to use an equivalent of it in appium.
Is Touchactions() a suitable one for it?
Tried it but getting error as
java.lang.ClassCastException: io.appium.java_client.android.AndroidDriver cannot be cast to org.openqa.selenium.interactions.HasTouchScreen
Have used this in the code:-
TouchActions touch=new TouchActions(driverManager);
touch.singleTap(letsstart); //letsstart is the variable which points to the element
touch.perform();
Please let me know how to go about it.