From 9521cc7b22e6472edc1fd4979a014074f00d72c2 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sun, 7 Feb 2021 17:56:11 +0800 Subject: app/test/test_add_word.py: find_elements. --- app/test/test_add_word.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index 5cf6b6c..e449293 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -47,7 +47,7 @@ def test_add_word(): elem = driver.find_element_by_xpath('//form[1]//input[1]') # 找到get所有词频按钮 elem.click() - elems = driver.find_element_by_xpath("//input[@type='checkbox']") + elems = driver.find_elements_by_xpath("//input[@type='checkbox']") for elem in elems: if elem.get_attribute('name') == 'marked': elem.click() -- cgit v1.2.1