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 using the RemoteWebDriver and AppiumDriver classes
- Third-party grid architecture support, including the Sauce Labs Test Cloud
- Using property files to select browsers, devices, versions, platforms, languages, and so on
Selenium headquarters website