Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

An introduction to page object (PO) Model

Shulou Source: shulou.com Published: 2022-06-03 05:42:16 10月02日 Update

The so-called PO is page object, popular explanation is that each page as an object, write a class for these pages, mainly to complete element positioning and business operations; as for the test script to distinguish from ta, what is needed to call these page classes. The advantage of this is that if the page elements change, you can maintain the page class, and you basically don't have to worry about the test class. (I think it's ideal and full of bones!)

Having said so much, it is estimated that there will still be children who do not understand, so take a look at this picture, one picture is better than a thousand words

It must be emphasized here again that PO model is an idea, not a specification. 100 people will write 100 different ways, so don't ask right or wrong.

Tags: Pages that is individuals elements tests models plump popular not used business again benefits objects right and wrong ideas ways reality ideals children's shoes scripts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology Xiaomi Microsoft Apple