From a523b99212bc572bd5ef6387be60a814d0f22703 Mon Sep 17 00:00:00 2001 From: Alena Krauch Date: Fri, 21 Mar 2025 21:25:51 +0300 Subject: [PATCH] ref test_gp_03_03 update groups_page.py --- pages/groups_page.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/groups_page.py b/pages/groups_page.py index eba7f472a2..287f87cb4f 100644 --- a/pages/groups_page.py +++ b/pages/groups_page.py @@ -213,17 +213,21 @@ def click_on_links_on_ru_local(self): @allure.step("Click on links on the 'en' local and thereby open corresponding web pages in the same tab") def click_on_links_on_en_local(self): + opened_pages = [] self.click_on_en_button() time.sleep(2) - opened_pages = [] + print(self.get_current_tab_url()) self.element_is_present_and_clickable(self.locators.PAGE_LINK1).click() - time.sleep(4) + time.sleep(5) opened_pages.append(self.get_current_tab_url()) + print(self.get_current_tab_url()) self.driver.back() - time.sleep(4) + time.sleep(5) + print(self.get_current_tab_url()) self.element_is_present_and_clickable(self.locators.PAGE_LINK2).click() - time.sleep(4) + time.sleep(5) opened_pages.append(self.get_current_tab_url()) + print(self.get_current_tab_url()) return opened_pages # Checking images on the page