Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions test/web_ut.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ISelenium(unittest.TestCase):
# 读入配置文件
def get_config(self):
config = configparser.ConfigParser()
config.read(os.path.join(os.environ['HOME'], 'iselenium.ini'))
config.read(os.path.join(os.environ['HOMEPATH'], 'iselenium.ini'))
return config

def tearDown(self):
Expand All @@ -35,8 +35,7 @@ def setUp(self):
print('使用无界面方式运行')
chrome_options.add_argument("--headless")

self.driver = webdriver.Chrome(executable_path=config.get('driver', 'chrome_driver'),
options=chrome_options)
self.driver = webdriver.Chrome(options=chrome_options)

@allure.story('Test key word 今日头条')
def test_webui_1(self):
Expand Down