diff options
-rw-r--r-- | app/test/test_next_essay.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test/test_next_essay.py b/app/test/test_next_essay.py index af1c1f2..7a7ce18 100644 --- a/app/test/test_next_essay.py +++ b/app/test/test_next_essay.py @@ -43,7 +43,7 @@ def test_next(): # click Next differ = 0 for i in range(3): - elem = driver.find_element_by_xpath('//form[1]/input[1]') + elem = driver.find_element_by_link_text('下一篇') elem.click() driver.save_screenshot('./app/test/test_next_essay_pic1.png') elem = driver.find_element_by_id('text-content') |