Answer the question
In order to leave comments, you need to log in
What is a Page object in testing?
I am not a tester, but I came across this term and quite a long googling and reading articles did not add understanding, apparently I am tight or testing is not mine. Who can explain in understandable language what a page object is and why it is needed.
Answer the question
In order to leave comments, you need to log in
Imitation (abstraction) of a real page element.
To be tied to it when testing, and not to a specific selector / xpath. Thanks to this, it is possible to write generalized tests, palming off the same object, but with different values.
It also helps to separate the code from the real markup, and when the selector of a button, window, block changes, then just for the object you will change the attribute in 1 place, and you won’t need to edit a hundred places in the tests, because all these tests are tied to the object and will receive this object with already changed value
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question