Book description
Leverage the power of Selenium to build your own real-time test cases from scratch
In Detail
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.
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
Table of contents
-
Learning Selenium Testing Tools Third Edition
- Table of Contents
- Learning Selenium Testing Tools Third Edition
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
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
- 2. Locators
- 3. Overview of the Selenium WebDriver
-
4. Finding Elements
-
Finding elements
- Finding an element on the page by its ID
- Finding elements on the page by their ID
- Finding an element on the page by its name
- Finding elements on the page by their name
- Finding an element on the page by its ClassName
- Finding elements on the page by their ClassName
- Finding an element on the page by its XPath
- Finding elements on the page by their XPath
- Finding an element on the page by its link text
- Finding elements on the page by their link text
- 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
-
Finding elements
- 5. Design Patterns
- 6. Working with WebDriver
-
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
- 8. Mobile Devices
- 9. Getting Started with the Selenium Grid
- 10. Advanced User Interactions
- 11. Working with HTML5
- 12. Advanced Topics
- 13. Migrating from Remote Control to WebDriver
- A. Automation Prerequisites for Selenium Automation
- B. Answers for Self-test Questions
- Index
Product information
- Title: Learning Selenium Testing Tools - Third Edition
- Author(s):
- Release date: February 2015
- Publisher(s): Packt Publishing
- ISBN: 9781784396497
You might also like
video
Data-Driven Testing in Selenium
Selenium is one of the most popular engines for UI test automation. It is available for …
book
Mastering Selenium WebDriver 3.0
Complement Selenium with useful additions that fit seamlessly into the rich and well-crafted API that Selenium …
book
Selenium Testing Tools Cookbook - Second Edition
Over 90 recipes to help you build and run automated tests for your web applications with …
book
Selenium Testing Tools Cookbook
Unlock the full potential of Selenium WebDriver to test your web applications in a wide range …