本次导引示例网站为:http://www.5itest.com,本套代码的开发也是基于该网站进行测试开发的,如果没有代码中特定说明新建代码模块,则默认同一篇文章的代码在同一代码模块里。
一、启动测试页面
#!/bin/usr/env python3
# -*- coding: utf-8 -*-
# --------------------------------
# ProjectName:
# Author: Crisimple
# CreateTime: 2019/6/4 16:26
# FileName: start_browser.py
# Description:
# Question:
# --------------------------------
from selenium import webdriver
import time
from selenium.webdriver.support import expected_conditions as EC
# 全局定义注册页面地址
register_url = "http://www.5itest.cn/register"
# 创建 driver 对象
driver = webdriver