From 9571c02efe08efc3e12e3379020b6364ac44dfc1 Mon Sep 17 00:00:00 2001 From: Alena Krauch Date: Tue, 17 Feb 2026 18:20:30 +0300 Subject: [PATCH] ref test_erwf_01.05 Verify page structural elements update exercises_ru_words_family_page_test.py, exercises_ru_words_family_page.py #623 --- pages/exercises_ru_words_family_page.py | 4 ++++ tests/exercises_ru_words_family_page_test.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/pages/exercises_ru_words_family_page.py b/pages/exercises_ru_words_family_page.py index ca424dd0a9..c2a781ed9a 100644 --- a/pages/exercises_ru_words_family_page.py +++ b/pages/exercises_ru_words_family_page.py @@ -138,3 +138,7 @@ def get_list1_of_breadcrumbs_links(self): att = [element.get_attribute("href") for element in elements] print(*att, len(att), sep='\n') return elements + + @allure.step("Check the list1 is visible") + def check_list1_visibility(self): + return all(element.is_displayed() for element in self.get_list1_of_breadcrumbs_links()) diff --git a/tests/exercises_ru_words_family_page_test.py b/tests/exercises_ru_words_family_page_test.py index 57bfb0b526..3637879177 100644 --- a/tests/exercises_ru_words_family_page_test.py +++ b/tests/exercises_ru_words_family_page_test.py @@ -85,4 +85,6 @@ def test_erwf_01_04_verify_page_structure_and_visibility(self, driver, exercises def test_erwf_01_05_verify_page_structural_elements(self, driver, exercises_ru_words_family_page_open): page = erwfPage(driver) list1_on_5th_level = page.get_list1_of_breadcrumbs_links() + list1_visibility = page.check_list1_visibility() assert list1_on_5th_level, "The list1 on the 5th level is absent on the page" + assert list1_visibility, "The list1 on the 5th level is invisible"