From 2a60eec12c2b8916454db8b032761d4a4d615c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=B0=9A=E6=B5=B7?= <1337633392@qq.com> Date: Mon, 20 May 2024 23:45:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20app/test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/test/test_bug551_XieShangHai.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_bug551_XieShangHai.py b/app/test/test_bug551_XieShangHai.py index 1d14554..3e0783b 100644 --- a/app/test/test_bug551_XieShangHai.py +++ b/app/test/test_bug551_XieShangHai.py @@ -17,11 +17,13 @@ def test_highlight(driver, URL): article = driver.find_element_by_id("article") actions = ActionChains(driver) actions.move_to_element(article).click_and_hold().move_by_offset(450,60).release().perform() + time.sleep(1) # 判断所有高亮单词是否有间隔 marks = driver.find_elements_by_tag_name("mark") for mark in marks: assert mark.value_of_css_property("padding") == '0px' + time.sleep(5) finally: # 测试结束后关闭浏览器 driver.quit()