Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Selenium

You're reading from   Learn Selenium Build data-driven test frameworks for mobile and web applications with Selenium Web Driver 3

Arrow left icon
Product type Course
Published in Jul 2019
Publisher Packt
ISBN-13 9781838983048
Length 536 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Carl Cocchiaro Carl Cocchiaro
Author Profile Icon Carl Cocchiaro
Carl Cocchiaro
UNMESH GUNDECHA UNMESH GUNDECHA
Author Profile Icon UNMESH GUNDECHA
UNMESH GUNDECHA
Arrow right icon
View More author details
Toc

Table of Contents (25) Chapters Close

Title Page
Copyright Contributors About Packt Preface 1. Introducing WebDriver and WebElements 2. Using Java 8 Features with Selenium FREE CHAPTER 3. Exploring the Features of WebDriver 4. Exploring Advanced Interactions of WebDriver 5. Understanding WebDriver Events 6. Exploring RemoteWebDriver 7. Setting up Selenium Grid 8. Data-Driven Testing with TestNG 9. Building a Scalable Selenium Test Driver Class for Web and Mobile Applications 10. Selenium Framework Utility Classes 11. Best Practices for Building Selenium Page Object Classes 12. Defining WebDriver and AppiumDriver Page Object Elements 13. Building a JSON Data Provider 14. Developing Data-Driven Test Classes 15. Encapsulating Data in Data-Driven Testing 16. Designing a Selenium Grid 17. Third-Party Tools and Plugins 18. Working Selenium WebDriver Framework Samples 1. Assessments 2. Other Books You May Enjoy

To get the most out of this book

The reader is expected to have a basic idea of programming, preferably using Java because we take the reader through several features of WebDriver using code examples.  The following software is required for the book:

  1. Java JDK 1.8
  2. IntelliJ IDEA 2017.3+
  3. Selenium WebDriver 3.7.1+ JAR
  4. Selenium Stand-alone Server 3.7.1+ JAR
  5. Appium Java Client 5.0.4+ JAR
  6. Appium Server 1.7.1 JAR for iOS or Linux

 

  1. TestNG 6.11 JAR
  2. ExtentReports 3.1.0 JAR
  3. Browsers: Google Chrome 62.0, Mozilla Firefox 57.0, Microsoft Internet Explorer 11.0
  4. Drivers: chromedriver.exe 2.33, geckodriver.exe 0.19.1, IEDriverServer.exe 3.7.1+
  5. Apple Xcode and iPhone Simulators for iOS
  6. Google Android SDK and Samsung Galaxy emulators for Linux
  7. VMware virtual machines

Installing Java

Installing Eclipse

This book is a practical guide that expects the user to write and execute WebDriver examples. For this, it would be handy to install a Java IDE. The Eclipse IDE is a popular choice in Java user community. The Eclipse IDE can be downloaded from https://www.eclipse.org/downloads/.

Download the example code files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Learn-SeleniumIn case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "beforeMethod(), which is annotated with the @BeforeMethod TestNG annotation."

A block of code is set as follows:

<input id="search" type="search" name="q" value="" class="input-text required-entry" maxlength="128" placeholder="Search entire store here..." autocomplete="off">

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

WebElement searchBox = driver.findElement(By.id("q"));

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "To run the tests, right-click in the code editor and select Run As | TestNG Test, as shown in the following screenshot."

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 $19.99/month. Cancel anytime
Banner background image