summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2021-02-11 20:15:29 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2021-02-11 20:15:29 +0800
commit0361a340f2c259c463add84599a30c337670a0d6 (patch)
tree378a1874f9440281cbc8accb126eaf9035d072b5
parentb692315dd0bf7d1629de3ede63b93809eb2dfd8a (diff)
app/test/test_add_word.py: no longer save any screenshot.
-rw-r--r--app/test/test_add_word.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py
index ebbfb8c..da1a2e3 100644
--- a/app/test/test_add_word.py
+++ b/app/test/test_add_word.py
@@ -57,7 +57,6 @@ def test_add_word():
if elem.get_attribute('name') == 'marked':
elem.click()
- driver.save_screenshot('./app/test/test_add_word_pic2.png')
elem = driver.find_element_by_xpath('//form[1]/input[1]') # 找到加入我的生词簿按钮
elem.click()
@@ -67,8 +66,6 @@ def test_add_word():
for elem in elems:
if word in elem.text:
found = 1
- elem.location_once_scrolled_into_view
- driver.save_screenshot('./app/test/test_add_word_pic3.png')
break
assert found == 1