Jump to ratings and reviews
Rate this book

Selenium WebDriver Tips and Tricks

Rate this book
This is a collection of Selenium WebDriver and Java tips and tricks that I learned and applied in my test automation projects over the last few years.

Part 1 is about tips, part 2 covering the tricks.

The tips promote writing correct object oriented code with principles such as

1. programming to an interface (examples: create custom driver, custom expected conditions and custom element classes)
2. breaking down big classes in smaller classes (example: create page element classes)
3. using inheritance correctly (creating a base page class as parent of the page object classes, creating a base test class as the parent of the test classes)
4. extending existing Selenium WebDriver classes (example: create a custom locator)

The tips chapters are longer as they start often with an incorrect situation and correct it by applying a specific principle. The tips are probably more useful that the tricks because, if you use them in your projects, the benefits will be big and wide spread.

The tricks chapters are shorter as tricks refer to handling unique and specific situations such as

1. Selecting a list option using partial visible text
2. Finding a web element using Javascript code
3. Clearing a textbox without the clear() method
4. Using regular expressions instead of string parsing
5. Reducing the number of assertions done on the same object

This is not a book for beginners as it uses advanced Java concepts such as inheritance, composition, interfaces and abstract classes. It assumes a good understanding of these notions and of the Selenium WebDriver library.

This book is good for you if you are wondering how to create your test automation framework and what components this framework should have.

It does not focus much on theory and takes instead a practical and code-oriented approach so that you see how things are done.

I hope that you will enjoy the book and find it useful for your test automation projects.

Alex Siminiuc

203 pages, Kindle Edition

Published October 27, 2018

6 people are currently reading
3 people want to read

About the author

Alex Siminiuc

3 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
2 (100%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.