diff --git a/pages/header_page.py b/pages/header_page.py index 037716aab6..c5cebcc6d9 100644 --- a/pages/header_page.py +++ b/pages/header_page.py @@ -695,9 +695,15 @@ def check_language_change_en_auth(self): return self.element_is_present(self.locators2.START_AUTHORIZED_PAGE_TITLE).text @allure.step("Click on the 'Logout' button in the Header for an authorized user") - def click_logout_button_auth(self): + def click_logout_button_auth1(self): self.check_logout_button_presence().click() + @allure.step("Click on the 'Logout' button in the Header for an authorized user -- ACTUAL") + def click_logout_button_auth(self): + button = self.check_logout_button_presence() + button.click() + Wait(self.driver, 10).until(EC.staleness_of(button)) + @allure.step("Check for user logout after clicking on the button 'Logout' in the Header for an authorized user") def check_auth_user_logout(self): start_element = self.element_is_present(self.locators2.START_AUTHORIZED_PAGE_TITLE).text