Complement Selenium with useful additions that fit seamlessly into the rich and well-crafted API that Selenium offers
Key Features
- 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
Book Description
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.
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
Who This Book Is For
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.
Table of Contents
- Creating a Fast Feedback Loop
- Producing the Right Feedback When Failing
- Exceptions Are Actually Oracles
- The Waiting Game
- Working with Effective Page Objects
- Utilizing the Advanced User Interactions API
- JavaScript Execution with Selenium
- Keeping It Real
- Hooking Docker into Selenium
- Selenium – the Future
- Contributing to Selenium
- Working with jUnit
- Introduction to Appium
Mark Collin has been working in the software industry since 2001. He started his career in the financial sector before moving into consultancy. He has an eclectic range of skills and proficiencies, which include test automation, security and penetration testing, and performance testing. Mark is the creator and maintainer of driver-binary-downloader maven-plugin, and the Query library used in this book. He is also a core contributor to jmeter-maven-plugin, a tool that allows you to run JMeter tests through Maven. He has also contributed code to the core Selenium code base.