summaryrefslogtreecommitdiff
path: root/app/test/test_add_word.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/test/test_add_word.py')
-rw-r--r--app/test/test_add_word.py2
1 files changed, 1 insertions, 1 deletions
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()