diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/test/test_add_word.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index 090ee17..3448799 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -59,8 +59,9 @@ def test_add_word():          elem = driver.find_element_by_id('add-to-new-word-book-btn') # 找到加入我的生词簿按钮          elem.click() -         -        elems = driver.find_elements_by_xpath("//p[@class='new-word']") + +        driver.refresh() +        elems = driver.find_elements_by_xpath("//p[@class='new-word']/a")          found = 0          for elem in elems: | 
