Python+selenium using Page object for automated testing of pages-not yet done

Source: Internet
Author: User

Page Object mode is a test design pattern in selenium, which is to design each page as a class that contains the elements (buttons, input boxes, headings, etc.) that need to be tested on the page. This allows the page element to be fetched by invoking the page class on the Selenium test page, which subtly avoids the need to test the page code when the page element ID or location changes. When the page element ID changes, you only need to change the properties of the page in the test page class.

Page Object mode is an automated test design pattern that separates page positioning from business operations and improves the maintainability of use cases.

UnitTest is a unit testing framework designed to design a wide variety of test cases and invoke PageObject-designed page classes (objects). It provides the use case organization and execution, provides the command comparison (assertion) method, provides the rich log, unifies applies to the Web automation use case development and the execution.

Python+selenium using Page object for automated testing of pages-not yet done

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.