Summary
In this chapter, we learned how to automate frequently-used gestures, such as press, long press, touch, and MultiTouch. We learned the APIs exposed by Appium and also the usage of those APIs. These code snippets can be used to implement different touch functionalities in your app. We also learned about device orientation and how to toggle it between the portrait and landscape modes. We also discussed the fact that some of these methods are available only to androidDriver. In the next chapter, we will learn about design patterns in test automation and delve into one of the most popular design patterns. We will also learn about some of the best practices for framework designing.