S
S
Stergy2019-09-19 16:42:20
Software testing
Stergy, 2019-09-19 16:42:20

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

2 answer(s)
M
Maxim Fedorov, 2019-09-19
@Stergy

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

K
KiT, 2019-09-23
Maverick @kit_de

I will answer as simply as possible.
This is a set of aliases for frequently used elements or actions on a particular page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question