Close the web browswer after finishing each test case

Bug551-DingZeYu
Lan Hui 2024-05-20 13:28:23 +08:00
parent 49ead93bcb
commit a4db1edffb
1 changed files with 2 additions and 1 deletions

View File

@ -33,4 +33,5 @@ def test_bug551(driver, URL):
font_weight = word.value_of_css_property("font-weight") font_weight = word.value_of_css_property("font-weight")
assert font_weight == expected_font_weight, f"选中部分的单词的字体样式错误" assert font_weight == expected_font_weight, f"选中部分的单词的字体样式错误"
time.sleep(5) time.sleep(5)
driver.quit()