Learning Selenium Testing Tools - Third Edition

Leverage the power of Selenium to build your own real-time test cases from scratch

Learning Selenium Testing Tools - Third Edition

Learning
Raghavendra Prasad MG

Leverage the power of Selenium to build your own real-time test cases from scratch
$26.99
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook

Get unlimited access to this and 3,500 other courses today!

With unlimited access to a constantly growing library of over 3,500 courses, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

+ Collection
Free Sample

Book Details

ISBN 139781784396497
Paperback318 pages

Book Description

Web technologies are becoming increasingly complex and there is often 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 cases. Selenium is one of the most easy to implement and efficient solutions for this.

This book will guide you through designing and implementing the automation framework on Selenium to build advanced automated test cases. You will start with getting acquainted with the Selenium IDE, working with AJAX, and using different methods to locate elements in a web page. You will then move on to using PageObjects, making tests maintainable, using WebDriver with different browsers, and setting up Selenium Grid. You will also be introduced to advanced topics such as working with proxy servers, network intrusions, and more. By the end of the book, you will have the skills to efficiently test your web applications using Selenium. A well-detailed section has been dedicated to teaching you the object-oriented concepts with basics of core Java, which are the pre-requisites for Selenium automation.

Table of Contents

Chapter 1: Getting Started with Selenium IDE
Understanding Selenium IDE
Rules in creating tests with Selenium IDE
Recording your first test with Selenium IDE
Validating a test with assert and verify
Creating comments in your tests
Multiplying windows
Selenium tests against AJAX applications
Storing information from the page in the test
Debugging tests
Creating test suites
Parameterization
Saving tests
What you cannot record
Summary
Self-test questions
Chapter 2: Locators
Locating elements by ID
Moving elements on the page
Using direct XPath in your test
Leveraging the XPath axis with elements
CSS selectors
Working with elements and their attributes
Summary
Self-test questions
Chapter 3: Overview of the Selenium WebDriver
History of Selenium
Understanding the WebDriver architecture
Merging of two projects
Setting up Eclipse IDE with Java project for Selenium WebDriver and TestNG
Summary
Self-test questions
Chapter 4: Finding Elements
Finding elements
Using findElement Helper methods
Finding elements using a more generic method
Tips and tricks
Waiting for elements to appear on the page
Summary
Self-test questions
Chapter 5: Design Patterns
Page objects
Using Page Factory with Page Object
Changing our Page Object to use LoadableComponent
Using LoadableComponent
Summary
Self-test questions
Chapter 6: Working with WebDriver
Working with FirefoxDriver
Working with ChromeDriver
Working with OperaDriver
Working with InternetExplorerDriver
Other important points
Summary
Self-test questions
Chapter 7: Automation Framework Development and Building Utilities
Automation without framework
Automation with Framework
Test Automation Frameworks Evolution
Form an automated test case using keywords
Building your own utilities for the Selenium automation framework
Summary
Self-test questions
Chapter 8: Mobile Devices
Working with Android
Running with OperaDriver on a mobile device
Using OperaDriver on Opera Mobile
Working with iOS
Summary
Self-test questions
Chapter 9: Getting Started with the Selenium Grid
Understanding Selenium Grid
The Selenium Grid hub
Adding instances to the hub
Adding Selenium Remote Control for different machines
Adding Selenium Server to do specific browser tasks on specific operating systems
Running tests against the grid
Running tests in parallel
Summary
Self-test questions
Chapter 10: Advanced User Interactions
What is Advanced User Interactions API?
The Actions class
Summary
Self-test questions
Chapter 11: Working with HTML5
Working with application cache
Interacting with browser connections
Working with WebStorage
Summary
Self-test questions
Chapter 12: Advanced Topics
Capturing screenshots
Using XVFB with Selenium
Working with BrowserMob Proxy
Summary
Self-test questions
Chapter 13: Migrating from Remote Control to WebDriver
WebDriverBackedSelenium
Summary
Self-test question

What You Will Learn

  • Understand designing and implementing the automation framework
  • Understand and implement AJAX in your web pages
  • Set up Selenium WebDriver in both IntelliJ and Eclipse
  • Build test suites in Selenium using PageObjects
  • Get to know about WebElement handling with Selenium WebDriver
  • Install Selenium WebDriver for mobile devices
  • Understand and learn testing in Selenium Grid

Authors

Table of Contents

Chapter 1: Getting Started with Selenium IDE
Understanding Selenium IDE
Rules in creating tests with Selenium IDE
Recording your first test with Selenium IDE
Validating a test with assert and verify
Creating comments in your tests
Multiplying windows
Selenium tests against AJAX applications
Storing information from the page in the test
Debugging tests
Creating test suites
Parameterization
Saving tests
What you cannot record
Summary
Self-test questions
Chapter 2: Locators
Locating elements by ID
Moving elements on the page
Using direct XPath in your test
Leveraging the XPath axis with elements
CSS selectors
Working with elements and their attributes
Summary
Self-test questions
Chapter 3: Overview of the Selenium WebDriver
History of Selenium
Understanding the WebDriver architecture
Merging of two projects
Setting up Eclipse IDE with Java project for Selenium WebDriver and TestNG
Summary
Self-test questions
Chapter 4: Finding Elements
Finding elements
Using findElement Helper methods
Finding elements using a more generic method
Tips and tricks
Waiting for elements to appear on the page
Summary
Self-test questions
Chapter 5: Design Patterns
Page objects
Using Page Factory with Page Object
Changing our Page Object to use LoadableComponent
Using LoadableComponent
Summary
Self-test questions
Chapter 6: Working with WebDriver
Working with FirefoxDriver
Working with ChromeDriver
Working with OperaDriver
Working with InternetExplorerDriver
Other important points
Summary
Self-test questions
Chapter 7: Automation Framework Development and Building Utilities
Automation without framework
Automation with Framework
Test Automation Frameworks Evolution
Form an automated test case using keywords
Building your own utilities for the Selenium automation framework
Summary
Self-test questions
Chapter 8: Mobile Devices
Working with Android
Running with OperaDriver on a mobile device
Using OperaDriver on Opera Mobile
Working with iOS
Summary
Self-test questions
Chapter 9: Getting Started with the Selenium Grid
Understanding Selenium Grid
The Selenium Grid hub
Adding instances to the hub
Adding Selenium Remote Control for different machines
Adding Selenium Server to do specific browser tasks on specific operating systems
Running tests against the grid
Running tests in parallel
Summary
Self-test questions
Chapter 10: Advanced User Interactions
What is Advanced User Interactions API?
The Actions class
Summary
Self-test questions
Chapter 11: Working with HTML5
Working with application cache
Interacting with browser connections
Working with WebStorage
Summary
Self-test questions
Chapter 12: Advanced Topics
Capturing screenshots
Using XVFB with Selenium
Working with BrowserMob Proxy
Summary
Self-test questions
Chapter 13: Migrating from Remote Control to WebDriver
WebDriverBackedSelenium
Summary
Self-test question

Book Details

ISBN 139781784396497
Paperback318 pages
Read More

Read More Reviews