From a4db1edffbac5f64a49eb299c517cf8d70792caf Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Mon, 20 May 2024 13:28:23 +0800 Subject: [PATCH] Close the web browswer after finishing each test case --- app/test/test_bug551_DingZeYu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_bug551_DingZeYu.py b/app/test/test_bug551_DingZeYu.py index cc44fd2..015fb5a 100644 --- a/app/test/test_bug551_DingZeYu.py +++ b/app/test/test_bug551_DingZeYu.py @@ -33,4 +33,5 @@ def test_bug551(driver, URL): font_weight = word.value_of_css_property("font-weight") assert font_weight == expected_font_weight, f"选中部分的单词的字体样式错误" - time.sleep(5) \ No newline at end of file + time.sleep(5) + driver.quit()