Mobile Automation Testing Interview Questions And Answers

Last updated on June 18th, 2025 at 05:28 am

26. : Can you tell me usage of findElements() method?
Answer : We can use findElements() method to get the list of elements from page.
Example : Supposing there are 5 buttons on page with same class name. In this case, We can use findElements() method and provide reference of class name in xpath(Example : findElements(By.xpath(“//android.widget.Button”))). So it will return list of all button elements. Then we can use get() method and provide reference of button’s index to locate specific button(Example : findElements(By.xpath(“//android.widget.Button”)).get(0)). View findElements() Example.

27. : How to perform drag and drop action in appium?
Answer : We can use TouchAction class of appium to perform drag and drop action on any element of mobile app. View Appium drag and drop Example in mobile app.
28. : What is usage TouchAction Class in Appium?
Answer : TouchAction Class is used to generate actions chain to perform drag and drop, swipe element, etc.. in appium test.
29. : How to perform swipe action in appium?
Answer : You can use TouchAction class and it’s methods to generate action chain of swipe action. View swipe using TouchAction example.
30. : Is there any other way to perform swipe in appium?
Answer : Yes, We can use swipe method to perform swipe action. View swipe using swipe method example.
author avatar
Aravind
Stay Updated with New Articles
Get the latest tutorials and insights delivered to your inbox.

Leave a Reply

Your email address will not be published. Required fields are marked *