summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/test/test_add_word.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/test/test_add_word.py b/app/test/test_add_word.py
index db862fc..d194ec7 100644
--- a/app/test/test_add_word.py
+++ b/app/test/test_add_word.py
@@ -59,7 +59,9 @@ def test_add_word():
driver.save_screenshot('./app/test/test_add_word_pic3.png')
elems = driver.find_elements_by_xpath("//p[@id='new-word']")
+ elems[0].location_once_scrolled_into_view
driver.save_screenshot('./app/test/test_add_word_pic4.png')
+
found = 0
for elem in elems:
if word in elem.text: