Selenium Testing Tools Cookbook
eBook - ePub

Selenium Testing Tools Cookbook

  1. 326 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Selenium Testing Tools Cookbook

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Web technologies are becoming increasingly complex and there is a need to test your web applications against a vast number of browsers and platforms, so you need to build highly reliable and maintainable test automation. This book will help you test your web applications effectively and efficiently with Selenium WebDriver.

"Selenium Testing Tools Cookbook" is an incremental guide that will help you learn and use advanced features of Selenium WebDriver API in various situations for building reliable test automation. You will learn how to effectively use features of Selenium using simple and detailed examples. This book will also teach you best practices, design patterns, and how to extend Selenium.

"Selenium Testing Tools Cookbook" shows developers and testers who already use Selenium, how to go to the next step and build a highly maintainable and reliable test framework using advanced features of the tool.

The book starts with tips on advanced location strategy and effective use of Selenium WebDriver API. Then it demonstrates the use of design patterns such as Data Driven Tests and PageFactory for building maintainable test automation.

It also explains extending Selenium WebDriver API along with implementing custom tasks and setting up your own distributed environment to run tests in parallel.

It concludes with tips on integrating Selenium WebDriver with other popular tools, testing mobile web applications, and capturing videos of test runs. This books provides examples in Java, C#, Ruby, and Python.

"Selenium Testing Tools Cookbook" will help you in building a highly robust and maintainable test automation framework from start to finish.

Approach

This is a cookbook packed with code examples and step-by-step instructions to ease your learning curve.

Who this book is for

This book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using Selenium and Java for testing web-based applications. This book also provides examples for C#, Python, and Ruby users.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Selenium Testing Tools Cookbook by Unmesh Gundecha in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.

Information

Year
2012
ISBN
9781849515740
Edition
1

Selenium Testing Tools Cookbook


Table of Contents

Selenium Testing Tools Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Locating Elements
Introduction
Using browser tools for inspecting elements and page structure
How to do it...
How it works...
Locating an element using the findElement method
How to do it...
How it works...
There's more...
See also
Locating elements using findElements method
How to do it...
How it works...
See also
Locating links
How to do it...
How it works...
There's more...
See also
Locating elements by tag name
How to do it...
How it works...
See also
Locating elements using CSS selectors
How to do it...
Performing partial match on attribute values
How it works...
See also
Locating elements using XPath
How to do it...
How it works...
Locating elements using text
How to do it...
How it works...
Locating elements using advanced CSS selectors
How to do it...
How it works...
See also
Using jQuery selectors
How to do it...
How it works...
There's more...
Locating table rows and cells
How to do it...
How it works...
There's more…
See also
Locating child elements in a table
How to do it...
How it works...
See also
2. Working with Selenium API
Introduction
Checking an element's text
How to do it...
How it works...
There's more...
Checking an element's attribute values
How to do it...
How it works...
Checking an element's CSS values
How to do it...
How it works...
See also
Using Advanced User Interactions API for mouse and keyboard events
How to do it...
How it works...
See also
Performing double-click on an element
How to do it...
How it works...
See also
Performing drag-and-drop operations
How to do it...
How it works...
See also
Executing JavaScript code
How to do it...
How it works...
There's more...
Capturing screenshots with Selenium WebDriver
How to do it...
How it works...
There's more...
See also
Capturing screenshots with RemoteWebDriver/Grid
Getting ready
How to do it...
How it works...
Maximizing the browser window
Getting ready
How to do it...
How it works...
Automating dropdowns and lists
How to do it...
How it works...
There's more...
See also
Checking options in dropdowns and lists
Getting ready
How to do it...
How it works...
There's more...
See also
Checking selected options in dropdowns and lists
Getting ready
How to do it...
How it works...
There's more...
See also
Automating radio buttons and radio groups
How to do it...
How it works...
Automating checkboxes
How to do it...
How it works...
Controlling Windows processes
How to do it...
How it works...
Reading a Windows registry value from Selenium WebDriver
How to do it...
How it works...
See also
Modifying a Windows registry value from Selenium WebDriver
How to do it...
How it works...
See also
3. Controlling the Test Flow
Introduction
Pop ups and Alerts
Synchronizing a test with an implicit wait
How to do it...
How it works...
See also
Synchronizing a test with an explicit wait
How to do it...
How it works...
See also
Synchronizing a test with custom-expected conditions
How to do it...
How it works...
There's more...
Waiting for element's attribute value update
Waiting for an element's visibility
Waiting for DOM events
Checking an element's presence
How to do it...
How it works...
See also
Checking an element's status
How to do it...
How it works...
Identifying and handling a pop-up window by its name
How to do it...
How it works...
There is more...
NoSuchWindowException
See also
Identifying and handling a pop-up window by its title
How to do it...
How it works...
See also
Identifying and handling a pop-up window by its content
How to do it...
How it works...
See also
Handling a simple JavaScript alert
How to do it...
How it works...
There is more...
NoAlertPresentException
See also
Handling a confirm box alert
How to do it...
How it works...
See also
Handling a prompt box alert
How to do it...
How it works...
See also
Identifying and handling frames
How to do it...
How it works...
See also
Identifying and handling frames by their content
How to do it...
How it works...
See also
Working with IFRAME
How to do it...
How it works...
See also
4. Data-driven Testing
Introduction
Data-driven approach – workflow
Benefits of data-driven testing
Creating a data-driven test using JUnit
Getting ready
How to do it...
How it works...
See also
Creating a data-driven test using TestNG
Getting ready
How to do it...
How it works...
There's more...
See also
Reading test data from a CSV file using JUnit
Getting ready
How to do it...
How it works...
See also
Reading test data from an Excel file using JUnit and Apache POI
Getting ready
How to do it...
How it wo...

Table of contents

  1. Selenium Testing Tools Cookbook