From 3e1648c58014c042bb61368913cd0437258ed67d Mon Sep 17 00:00:00 2001 From: Alena Krauch Date: Wed, 22 Apr 2026 19:00:31 +0300 Subject: [PATCH] ref test_hpa_03.04 Verifying click auth logo link update header_page.py #268 --- pages/header_page.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pages/header_page.py b/pages/header_page.py index e86213bf5a..fdd1132b26 100644 --- a/pages/header_page.py +++ b/pages/header_page.py @@ -397,7 +397,15 @@ def click_on_external_links_in_header(self): @allure.step("Click on the 'Logo' link for every user") def click_on_logo_link(self): - self.element_is_present_and_clickable(self.locators.LOGO_LINK).click() + + # Wait until the logo becomes clickable and click it + Wait(self.driver, 10).until(EC.element_to_be_clickable(self.locators.LOGO_LINK)).click() + + # Wait for the page to reload (document readiness) + Wait(self.driver, 10).until(EC.presence_of_element_located(self.locators.LOGO_LINK)) + + # Wait until the logo becomes visible + Wait(self.driver, 10).until(EC.visibility_of_element_located(self.locators.LOGO_LINK)) return self.driver.current_url # Checks of buttons clicking in the Header