diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 19:45:36 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2021-02-11 19:45:36 +0800 |
commit | cd1fe11e91e75a09da7b65f02d5456a00779e82c (patch) | |
tree | c8c618617a59aa2f7023d4bfd6b850fa80e50347 /app/test | |
parent | 1e2d2612726d92d79e13873a159a710464503f0c (diff) |
app/test/test_add_word.py: move the position of saving screenshots.
Diffstat (limited to 'app/test')
-rw-r--r-- | app/test/test_add_word.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py index 4613dff..00de26b 100644 --- a/app/test/test_add_word.py +++ b/app/test/test_add_word.py @@ -67,10 +67,9 @@ 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 - - elem.location_once_scrolled_into_view - driver.save_screenshot('./app/test/test_add_word_pic3.png') assert found == 1 finally: |