Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mobile Test Automation with Appium

You're reading from  Mobile Test Automation with Appium

Product type Book
Published in Jun 2017
Publisher Packt
ISBN-13 9781787280168
Pages 256 pages
Edition 1st Edition
Languages
Author (1):
Nishant Verma Nishant Verma
Profile icon Nishant Verma

AppiumDriver


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, it lacks device family-specific functions. The direct subclasses are AndroidDriver, IOSDriver, and WindowsDriver.
  • AndroidDriver: It inherits...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}