© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
K. DasCreate an Enterprise-Level Test Automation Framework with Appiumhttps://doi.org/10.1007/978-1-4842-8197-0_6

6. Enhancing the Framework: Common Mobile Actions

Koushik Das1  
(1)
Miami, FL, USA
 

In the previous chapter, we learned how to create Android and iOS drivers based on flags in the uitest.properties file. In this chapter, we will create a class to implement common page object actions, like wait, click, type, swipe, scroll, press, and so on, and to define variables that will be used in all page objects. This class will be extended by all page objects. Let’s begin.

Creating Variables for the MobileBaseActionScreen Class

Let’s create two enums, Direction ...

Get Create an Enterprise-Level Test Automation Framework with Appium: Using Spring-Boot, Gradle, Junit, ALM Integration, and Custom Reports with TDD and BDD Support now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.