Book description
Complement Selenium with useful additions that fit seamlessly into the rich and well-crafted API that Selenium offers
About This Book- Understand the power, simplicity, and limitations of the core Selenium framework
- Write clear, readable, and reliable tests that perform complex test automation tasks
- Work with ChromeDriver and GeckoDriver in headless mode
If you are a software tester or a developer with working experience in Selenium and competency with Java, who is interested in automation and are looking forward to taking the next step in their learning journey, then this is the book for you.
What You Will Learn- Provide fast, useful feedback with screenshots
- Create extensible, well-composed page objects
- Utilize ChromeDriver and GeckoDriver in headless mode
- Leverage the full power of Advanced User Interactions APIs
- Use JavascriptExecutor to execute JavaScript snippets in the browser through Selenium
- Build user interaction into your test script using JavascriptExecutor
- Learn the basics of working with Appium
The second edition of Mastering Selenium 3.0 WebDriver starts by showing you how to build your own Selenium framework with Maven. You'll then look at how you can solve the difficult problems that you will undoubtedly come across as you start using Selenium in an enterprise environment and learn how to produce the right feedback when failing. Next, you'll explore common exceptions that you will come across as you use Selenium, the root causes of these exceptions, and how to fix them. Along the way, you'll use Advanced User Interactions APIs, running any JavaScript you need through Selenium; and learn how to quickly spin up a Selenium Grid using Docker containers. In the concluding chapters, you'll work through a series of scenarios that demonstrate how to extend Selenium to work with external libraries and applications so that you can be sure you are using the right tool for the job.
Style and approachThis book is a pragmatic guide that takes you through the process of creating a test framework with Selenium 3. It then shows you how you can extend this framework to overcome common obstacles that you will come across whilst using Selenium.
Table of contents
- Title Page
- Copyright and Credits
- Contributors
- Packt Upsell
- Preface
- Creating a Fast Feedback Loop
- Producing the Right Feedback When Failing
-
Exceptions Are Actually Oracles
- NoSuchElementException
- NoSuchFrameException
- NoSuchWindowException
- ElementNotVisibleException
- StaleElementReferenceException
- InvalidElementStateException
- UnsupportedCommandException
- UnreachableBrowserException
- SessionNotFoundException
- WebDriverException – element is not clickable at point
- NoAlertPresentException
- Summary
- The Waiting Game
-
Working with Effective Page Objects
- Why do you keep repeating yourself?
- Starting out with page objects
- Separation of concerns with page objects
- Introducing the Java PageFactory class
- Introducing the Query object
- So, which option should I use?
- Creating extensible page objects
- Turning your page objects into a readable DSL
- Fluent page objects
- Summary
- Utilizing the Advanced User Interactions API
- JavaScript Execution with Selenium
-
Keeping It Real
- File downloads with Selenium
- You cannot track network traffic with Selenium
- But I really want to track my network traffic!
- Writing performance tests with Selenium
- Penetration testing with Selenium
- Summary
- Hooking Docker into Selenium
- Selenium – the Future
- Appendix A: Contributing to Selenium
- Appendix B: Working with JUnit
- Appendix C: Introduction to Appium
- Other Books You May Enjoy
Product information
- Title: Mastering Selenium WebDriver 3.0
- Author(s):
- Release date: June 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788299671
You might also like
video
Mastering Selenium WebDriver 3.X Test Automation
Are you facing an issue where your tests break often for no obvious reason or are …
book
Python Testing with Selenium: Learn to Implement Different Testing Techniques Using the Selenium WebDriver
Implement different testing techniques using Selenium WebDriver with the Python programming language. This quick reference provides …
book
Selenium WebDriver Quick Start Guide
Get writing tests and learn to design your own testing framework with Selenium WebDriver API Key …
book
Learn Selenium
Learn end-to-end automation testing techniques for web and mobile browsers using Selenium WebDriver, AppiumDriver, Java, and …