Selenium Automation Introduction
Selenium Automation Introduction
- Selenium is a popular open source
test automation tool to test web applications.
- It doesn't inherently comes with a
feature to manage object information. Generating code for automation can result
in duplicate code as functionalities could be common across scenarios of an
application.
- Challenge occurs as the code can
undergo change because object information can change with changing UI with
different test releases.
- A Page Object simply models these as
objects within the test code. This reduces the amount of duplicated code and
means that if the UI changes, the fix need only be applied in one place.
- It's simplest to think of the methods
on a Page Object as offering the "services" that a page offers rather
than exposing the details and mechanics of the page
No comments:
Post a Comment