From e6e9a704741338efa03e4a5c1f0a8a29cb2ba59f Mon Sep 17 00:00:00 2001 From: Alena Krauch Date: Fri, 25 Jul 2025 13:09:52 +0300 Subject: [PATCH] ref test_cnp_01.03 Verify page structural elements update contributors_page.py --- pages/contributors_page.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/contributors_page.py b/pages/contributors_page.py index 3ad2c72657..c06f76b754 100644 --- a/pages/contributors_page.py +++ b/pages/contributors_page.py @@ -1,8 +1,8 @@ """Methods for verifying web elements on the 'Contributors' page""" -import time - import allure import requests +from selenium.webdriver.support import expected_conditions as EC +from selenium.webdriver.support.wait import WebDriverWait as Wait from pages.base_page import BasePage from locators.contributors_page_locators import ContributorsPageLocators @@ -90,8 +90,8 @@ def check_cards_visibility(self): @allure.step("Get the list of descriptions in cards on the 4th level of nesting on the page") def get_list_of_card_descriptions(self): - time.sleep(1) - return self.elements_are_present(self.locators.CARD_DESCRIPTIONS) + return Wait(self.driver, 10).until( + EC.visibility_of_all_elements_located(self.locators.CARD_DESCRIPTIONS)) @allure.step("Check descriptions in cards are visible") def check_descriptions_visibility(self):