Page object Model Sample - Kapalak/Spider GitHub Wiki
If google decide to change their search button selector, all our test using this components will fail. We will define the component into a single place...
Let's try the page object model !
It consists to define for each html page an object which encapsulate all the page selector. For example for the www.google.com page we will define google.json file which include SearchInput selector SearchButton selector ...
Same for all our tested website ... we will define the login page object, welcome page object, etc...
The goal is to regroup have a readable structure where we will find intuitively our elements (input, button, link, ...)