![]() ![]() We have added some test in the git project to show how to use the gestures in automation. It implements actions for touch devices and basically built upon the Actions class. You might also want to explore TouchActions class provided by Selenium. Prefix “ mobile:” allows us to route these requests to the appropriate endpoint. Some of the mobile methods to be used are: mobile: tap Duration basically specifies how long it will tap and is in seconds. So in above example it means, 1% from x and 50% from y coordinates. When we enter the coordinates in decimal, it actually specifies the percentage. Js.executeScript(“mobile: swipe”, swipeObject) SwipeObject.put(“duration”, 3.0) //Tap 3 secs Sample code would look like as: JavascriptExecutor js = (JavascriptExecutor) driver ![]() We can pass in coordinates as parameters and specify the action we want. TouchAction class is available from namespace Apart from that they have also enabled JSON wire protocol server extensions. It’s more like Actions class in Selenium. Some of the common gestures are:Īppium handles these gestures using TouchActions api they have created. With lot of unique gesture supported on mobile devices, automation has its own challenge. Gestures play an important role in how your app is being used. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |