from selenium import webdriver
import os
class TestCase(object):
def __init__(self):
self.driver = webdriver.Chrome()
# form表单路径
path = os.path.driname(os.path.abspath(__file__))
file_path = 'file:///'+path+'/forms3.html'
self.driver.get(file_path)
if __name__ == '__main__':
case = TestCase()