In this chapter, we will cover designing and building the Java test driver class required to create and use the Selenium WebDriver API and AppiumDriver API for automated testing. The driver class is the central location for all aspects and preferences of the browser and mobile devices, platforms and versions to run on, support for multithreading, support for the Selenium Grid Architecture, and customization of the driver. This chapter will cover the following topics:
- Introduction
- The singleton driver class
- Using preferences to support browsers and platforms
- Using preferences to support mobile device simulators, emulators, and real devices
- Multithreading support for use in parallel and distributed testing
- Passing optional arguments and parameters to the driver
- Selenium Grid Architecture support...