diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 20:23:05 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 20:23:05 +0800 |
commit | 5d8dd88e781f4297c9f344bc99d290fa2cf8b6e9 (patch) | |
tree | 5cd9712838b329daebb36c8d3aee6cea242a94fd /app/test | |
parent | 0361a340f2c259c463add84599a30c337670a0d6 (diff) |
app/test/test_add_word.py and app/main.py: give the button an ID.
Diffstat (limited to 'app/test')
-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 da1a2e3..090ee17 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -57,7 +57,7 @@ def test_add_word(): if elem.get_attribute('name') == 'marked': elem.click() - elem = driver.find_element_by_xpath('//form[1]/input[1]') # 找到加入我的生词簿按钮 + elem = driver.find_element_by_id('add-to-new-word-book-btn') # 找到加入我的生词簿按钮 elem.click() elems = driver.find_elements_by_xpath("//p[@class='new-word']") |