公共模块介绍
公共模块文件:opens.py
#coding = UTF-8
"""
Created on 2020-12-18
@author: ****
Project:公共模块
"""
from selenium import webdriver
#selenium库,webdriver:对元素的定位操作等
from selenium.webdriver.common.action_chains import ActionChains
#模拟鼠标操作的库(鼠标悬停之类的)
import unittest
#unittest测试框架,同学们想详细了解的话可以去百度直接搜索unittest查看框架详情
import time
import os,sys
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + r"/pubilc"
sys.path.append(path)
#添加环境变量,添加到目录就可以,需要导入这个目录下哪个文件时直接from 目录.文件名 import 类就可以
class open_web():