Page Object Design Mode (Page Objects)
- Object library layer
- Logical layer
- Business Layer
- Data Layer
According to the design page mode, create a test framework
- Code stored inside the base package base
- page editing code on the package inside a page object layer
- The method of preparation of reading the file utils package
- textCase write all the code page of the test object
- data folder to store data, the test data stored in the xml file,
- report storage test report
1、 basePage.py
from selenium import webdriver
from selenium.webdriver.support.expected_conditions