diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 15:39:13 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 15:39:13 +0800 |
commit | a092115806844e50cb413089328dcf2b0f9ad770 (patch) | |
tree | ea4fc97387ad1c3c30ee59aa3e9bc1f0654049c4 /app/test/test_add_word.py | |
parent | e695b4b3c33c6d7c42f0ff35963bbdfc286b0f02 (diff) |
app/test/test_add_word.py and app/test/test_add_word_and_essay_does_not_change.py: change index of form, as I have removed the link form.
Diffstat (limited to 'app/test/test_add_word.py')
-rw-r--r-- | app/test/test_add_word.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index 01d867f..9c87e1c 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -49,7 +49,7 @@ def test_add_word(): elem.send_keys(word) driver.save_screenshot('./app/test/test_add_word_pic1.png') - elem = driver.find_element_by_xpath('//form[2]//input[1]') # 找到get所有词频按钮 + elem = driver.find_element_by_xpath('//form[1]//input[1]') # 找到get所有词频按钮 elem.click() elems = driver.find_elements_by_xpath("//input[@type='checkbox']") |