If you refer to Chapter 3, Writing Your First Appium Test, and remember the boilerplate code generated, it creates an instance AppiumDriver:
wd = new AppiumDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
Let's take some time to understand what types of driver Appium allows us to create. Certainly, AppiumDriver was generated by the boilerplate code. Let's take a look at the other drivers:
- RemoteWebDriver: It comes from Selenium. It has two components: a server and a client. A server is a component that listens on a port for various requests from the client. The client translates the script to the JSON payload and sends it to the server using the JSON wire protocol.
- AppiumDriver: It inherits from the RemoteWebDriver and adds functions that are handy for mobile automation. It can be used to automate both Android and iOS apps; however...