From 9bacbfef4cc06e13b015e975003563d943a7998d Mon Sep 17 00:00:00 2001 From: JasonHomeWorkstationUbuntu Date: Sun, 8 Nov 2020 20:46:26 +1100 Subject: [PATCH] 5.3.1+ fixed problem by replacing find_element_by_tag_name with find_elements_by_tag_name --- src/functional_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functional_tests.py b/src/functional_tests.py index 24347ff..d588e7b 100644 --- a/src/functional_tests.py +++ b/src/functional_tests.py @@ -37,7 +37,7 @@ class NewVisitorTest(unittest.TestCase): inputbox.send_keys(Keys.ENTER) time.sleep(1) table = self.browser.find_element_by_id('id_list_table') - rows = table.find_element_by_tag_name('tr') + rows = table.find_elements_by_tag_name('tr') # self.assertTrue('1: Buy peacock feathers', [row.text for row in rows]) # There is still a text box inviting her to add another item. She @@ -49,7 +49,7 @@ class NewVisitorTest(unittest.TestCase): # The page updates again, and now shows both items on her list table = self.browser.find_element_by_id('id_list_table') - rows = table.find_element_by_tag_name('tr') + rows = table.find_elements_by_tag_name('tr') print(rows) self.assertIn('1: Buy peacock feathers', [row.text for row in rows]) self.assertIn(