summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2021-02-10 17:48:46 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2021-02-10 17:48:46 +0800
commit394fadbda906cd78ac02aa907e6d3a56fb6a6f37 (patch)
treec439f3a94e65d05202dc69bb8d287db93e8deec3 /app
parent8ee08757450649e118fdfa54c5fc6693d4d05fea (diff)
app/test/test_next_essay.py: update element search method.
Diffstat (limited to 'app')
-rw-r--r--app/test/test_next_essay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test/test_next_essay.py b/app/test/test_next_essay.py
index 7a877ab..9075d7c 100644
--- a/app/test/test_next_essay.py
+++ b/app/test/test_next_essay.py
@@ -40,7 +40,7 @@ def test_next():
# click Next
differ = 0
- elem = driver.find_element_by_link_text('下一篇')
+ elem = driver.find_element_by_xpath('//form[1]/input[1]')
elem.click()
driver.save_screenshot('./app/test/test_next_essay_pic1.png')
elem = driver.find_element_by_id('text-content')