Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Selenium Testing Tools - Third Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Selenium Testing Tools - Third Edition

Learning Selenium Testing Tools - Third Edition - Third Edition

By : Raghavendra Prasad MG
4.4 (11)
close
close
Learning Selenium Testing Tools - Third Edition

Learning Selenium Testing Tools - Third Edition

4.4 (11)
By: Raghavendra Prasad MG

Overview of this book

If you are a software developer with a basic knowledge of testing and are interested in automated testing using Selenium, this is the book for you. No prior knowledge of Selenium is required.
Table of Contents (17 chapters)
close
close
16
Index

Page objects


In this section of the chapter, we will take a look at how we can apply some best code practices to tests. You will learn how to make maintainable test suites that allow you to update tests in seconds. We will also take a look at how to create your own DSL (Domain-specific language) so that people can see intent. Also, we will create tests using the Page Object pattern.

Let's start trying to put these best practices to work.

Setting up the test

Imagine that you have a number of tests that work on a site that requires you to log in and move to a certain page. Or, imagine that you need to have a test that requires you to be on a certain page. In these two situations, the quickest way to find out which page you are on and then move to the correct one if need be, is to start testing. This is to make sure that we follow one of the major tenants of test automation. In this, you always start from a known place. Let's see this in an example:

  1. Create a new Java class in Eclipse IDE.

  2. Import...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Selenium Testing Tools - Third Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon