summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/test/test_add_word.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py
index 4ff5a75..e37683c 100644
--- a/app/test/test_add_word.py
+++ b/app/test/test_add_word.py
@@ -41,14 +41,13 @@ def test_add_word():
elem = driver.find_element_by_id('text-content')
essay_content = elem.text
- # click Next
elem = driver.find_element_by_id('selected-words')
word = random.choice(essay_content.split())
while 'font>' in word or 'br>' in word or 'p>' in word or len(word) < 5 or has_punctuation(word):
word = random.choice(essay_content.split())
elem.send_keys(word)
driver.save_screenshot('./app/test/test_add_word_pic1.png')
- elem = driver.find_element_by_xpath('//form[1]//input[1]') # 找到get所有词频按钮
+ elem = driver.find_element_by_xpath('//form[2]//input[1]') # 找到get所有词频按钮
elem.click()
elems = driver.find_elements_by_xpath("//input[@type='checkbox']")