© 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_5

5. Creating Android, iOS, and Web Drivers on Demand

Koushik Das1  
(1)
Miami, FL, USA
 

In the previous chapter, we created properties files and learned how to read them using the Spring-Boot library, as well as in the traditional way. In this chapter, we will learn how to create a driver instance with the desired set of capabilities in the property file. Let’s dive in!

Creating a Driver with Standard Desired Capabilities

Let’s create a class, Session, in src/test/java/com/taf/testautomation, as shown in Listing 5-1.
package com.taf.testautomation;

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.