Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions locators/header_page_locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class HeaderAuthorizedLocators:
HEADER_LINKS_AUTH = (By.XPATH, "//nav//a")
HEADER_ICONS = (By.XPATH, "//nav//*[name()='svg']")
HEADPHONE_ICON = (By.XPATH, "(//nav//*[name()='svg'])[2]")
LINK_ABOUT_AUTH = (By.XPATH, "(//nav//a)[4]")
LINK_GROUPS_AUTH = (By.XPATH, "(//nav//a)[2]")
LINK_STATISTICS_AUTH = (By.XPATH, "(//nav//a)[3]")
LINK_PROFILE = (By.XPATH, "(//nav//a)[12]")
Expand Down
6 changes: 6 additions & 0 deletions pages/header_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,12 @@ def click_on_direct_internal_links_in_header_auth(self):
self.element_is_present_and_clickable(self.locators1.LINK_GROUPS_AUTH).click()
Wait(self.driver, 10).until(EC.url_changes(current_url))
current_url = self.get_current_tab_url()
opened_pages.append(current_url)

# Click on the 'About' link
self.element_is_present_and_clickable(self.locators1.LINK_ABOUT_AUTH).click()
Wait(self.driver, 10).until(EC.url_changes(current_url))
current_url = self.get_current_tab_url()
opened_pages.append(current_url) # to be continued
print(opened_pages)

Expand Down
Loading