diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 20:48:34 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 20:48:34 +0800 |
commit | f8c58465e790343320b37e20dd20b3eef22f6f5f (patch) | |
tree | 3c9776661c9ce2ee311d95590344427e2c5cbe67 /app/test/test_add_word.py | |
parent | eab037ef5d77457adfe7be54512a3f209c08e70a (diff) |
app/test/test_add_word.py and app/main.py: use name.
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 3448799..a770880 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_id('add-to-new-word-book-btn') # 找到加入我的生词簿按钮 + elem = driver.find_element_by_name('add-btn') # 找到加入我的生词簿按钮 elem.click() driver.refresh() |