Page Object Design Mode (Page Objects)

Page Object Design Mode (Page Objects)

  1. Object library layer
  2. Logical layer
  3. Business Layer
  4. Data Layer

According to the design page mode, create a test framework

  1. Code stored inside the base package base
  2. page editing code on the package inside a page object layer
  3. The method of preparation of reading the file utils package
  4. textCase write all the code page of the test object
  5. data folder to store data, the test data stored in the xml file,
  6. report storage test report
    Here Insert Picture Description
    Here Insert Picture Description

1、 basePage.py

from selenium import webdriver
from selenium.webdriver.support.expected_conditions 

Guess you like

Origin blog.csdn.net/Mwyldnje2003/article/details/103849154