๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

Selenium Testing Tools Definitive Guide

โœ Scribed by Avasarala, Satya


Publisher
Packt Publishing
Year
2014
Tongue
English
Leaves
264
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Key Features

  • Covers basic to advanced concepts of WebDriver
  • Learn how to design a more effective automation framework
  • Explores all of the APIs within WebDriver
  • Acquire an in-depth understanding of each concept through practical code examples

Book Description

Selenium WebDriver is an open source web UI automation tool implemented through a browser-specific browser driver, which sends commands to a browser and retrieves results.

Selenium WebDriver Practical Guide will guide you through the various APIs of WebDriver which should be used in automation tests, followed by a discussion of the various WebDriver implementations available. This guide will support you by offering you access to source code fi les, including the essential HTML fi les, that allow you to work with jQuery and other examples throughout the book. Finally, you will receive an in-depth explanation of how to deal with the latest features of WebDriver through step-by-step practical tutorials.

What you will Learn

  • Learn the basic design of Selenium WebDriver and understand how it overcomes the limitations of its predecessor
  • Set up and use Selenium Grid
  • Discover the various mechanisms used to locate web elements
  • Perform advanced actions such as drag-and-drop, double-click, right-click, and action builders on web pages
  • Explore the advanced features of WebDriver such as handling cookies, taking screenshotsmanaging timeouts, and browser navigations
  • Acquire an understanding of the various WebDriver implementations such as Firefox Driver, IE Driver, and Chrome Driver
  • Explore WebDriver EventListeners
  • Design effective automation frameworks using the PageObject pattern
  • Learn how to deal with the latest features of WebDriver

About the Author

Satya Avasarala has rich experience in Java development and automation testing. He is an engineer in computer science. He has used WebDriver for many years now and has created several good automation frameworks. He has worked at various large software enterprises such as Oracle Corp, Yahoo! Inc., VMware Inc., and the REA Group.

Table of Contents

  1. Introducing WebDriver and WebElements
  2. Exploring Advanced Interactions of WebDriver
  3. Exploring the Features of WebDriver
  4. Different Available WebDrivers
  5. Understanding WebDriver Events
  6. Dealing with I/O
  7. Exploring RemoteWebDriver and WebDriverBackedSelenium
  8. Understanding Selenium Grid
  9. Understanding PageObject Pattern
  10. Testing iOS and Android Apps

โœฆ Table of Contents


Content: Cover
Copyright
Credits
About the Author
About the Reviewers
www.PacktPub.com
Table of Contents
Preface
Chapter 1: Introducing WebDriver and WebElements
Understanding the history of Selenium
Selenium 1 or Selenium Remote Control or Selenium RC
Selenium 2 or Selenium WebDriver or WebDriver
Differences between Selenium 1 and Selenium 2
Handling the browser
Having better APIs
Testing mobile apps
Having developer support and advanced functionalities
Setting up a project in Eclipse
WebElements
Locating WebElements using WebDriver
The findElement() method. The findElements() methodFireBug
Using the By locating mechanism
Actions on WebElements
The getAttribute() method
The sendKeys() method
The clear() method
The submit() method
The getCssValue() method
The getLocation() method
The getSize() method
The getText() method
The getTagName() method
The isDisplayed() method
The isEnabled() method
The isSelected() method
Summary
Chapter 2: Exploring Advanced Interactions of WebDriver
Understanding actions, build, and perform
Learning mouse-based interactions
The moveByOffset action
The click at current location action. The click on a WebElement actionThe clickAndHold at current location action
The clickAndHold a WebElement action
The release at current location action
The release on another WebElement action
The moveToElement action
The dragAndDropBy action
The dragAndDrop action
The doubleClick at current location action
The doubleClick on WebElement action
The contextClick on WebElement action
The contextClick at current location action
Learning keyboard-based interactions
The keyDown and keyUp actions
The sendKeys() method
Summary
Chapter 3: Exploring the Features of WebDriver. Setting the desired capabilities for a browserTaking screenshots
Locating target windows and iFrames
Switching among windows
Switching among frames
Handling alerts
Exploring Navigate
Waiting for WebElements to load
Implicit wait time
Explicit wait time
Handling cookies
Summary
Chapter 4: Different Available WebDrivers
Firefox Driver
Understanding the Firefox profile
Adding the extension to Firefox
Storing and retrieving a profile
Dealing with Firefox preferences
Setting preferences
Understanding frozen preferences
Firefox binary
Installing multiple versions of Firefox. InternetExplorerDriverInstalling InternetExplorerDriver
Writing your first test script for the IE browser
Building the InternetExplorer driver service
Understanding IEDriver capabilities
ChromeDriver
Installing ChromeDriver
Writing your first test script for the Chrome browser
Using ChromeOptions
SafariDriver
Writing your first test script for the Safari browser
OperaDriver
Installing OperaDriver
Writing your first test script for the Opera browser
Summary
Chapter 5: Understanding WebDriver Events
Introducing EventFiringWebDriver and EventListener classes.

โœฆ Subjects


Application software;Development.


๐Ÿ“œ SIMILAR VOLUMES


Selenium Testing Tools Definitive Guide
โœ Avasarala, Satya ๐Ÿ“‚ Library ๐Ÿ“… 2014 ๐Ÿ› Packt Publishing ๐ŸŒ English

<h4>Key Features</h4><ul> <li>Covers basic to advanced concepts of WebDriver</li> <li>Learn how to design a more effective automation framework</li> <li>Explores all of the APIs within WebDriver</li> <li>Acquire an in-depth understanding of each concept through practical code examples</li></ul> <h4>

Selenium Testing Tools Definitive Guide
โœ Avasarala, Satya ๐Ÿ“‚ Library ๐Ÿ“… 2014 ๐Ÿ› Packt Publishing ๐ŸŒ English

<h4>Key Features</h4><ul> <li>Covers basic to advanced concepts of WebDriver</li> <li>Learn how to design a more effective automation framework</li> <li>Explores all of the APIs within WebDriver</li> <li>Acquire an in-depth understanding of each concept through practical code examples</li></ul> <h4>

Selenium 1.0 Testing Tools: Beginners Gu
โœ David Burns ๐Ÿ“‚ Library ๐Ÿ“… 2010 ๐Ÿ› Packt Publishing ๐ŸŒ English

Written with a fast-paced but friendly and engaging approach, this Packt Beginner's Guide is designed to be placed alongside the computer as your guide and mentor. Step-by-step tutorials are bolstered by explanations of the reasoning behind what you are doing. You will quickly pick up the necessary

Selenium 2 Testing Tools: Beginner's Gui
โœ Burns David ๐Ÿ“‚ Library ๐Ÿ“… 2012 ๐Ÿ› Packt Publishing ๐ŸŒ English

<p>Learn to use Selenium testing tools from scratch</p> <ul> <li>Automate web browsers with Selenium WebDriver to test web applications</li> <li>Set up Java Environment for using Selenium WebDriver</li> <li>Learn good design patterns for testing web applications </li> </ul> <p><b>In Detail</b></p>

Selenium 2 Testing Tools: Beginner's Gui
โœ Burns David ๐Ÿ“‚ Library ๐Ÿ“… 2012 ๐Ÿ› Packt Publishing ๐ŸŒ English

<p>Learn to use Selenium testing tools from scratch</p> <ul> <li>Automate web browsers with Selenium WebDriver to test web applications</li> <li>Set up Java Environment for using Selenium WebDriver</li> <li>Learn good design patterns for testing web applications </li> </ul> <p><b>In Detail</b></p>

Selenium 2 Testing Tools: Beginner's Gui
โœ David Burns ๐Ÿ“‚ Library ๐Ÿ“… 2012 ๐Ÿ› Packt Publishing ๐ŸŒ English

Learn the basics of breaking down a web application for testing. Understand AJAX calls and how they work with your tests. Create basic scripts that allow you to recreate issues quickly. Set up Firefox Driver, Firefox profiles, and extensions. Get your tests working on mobile devices. Migrate your te