Skip to content
Merged
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
4 changes: 3 additions & 1 deletion pages/header_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,11 @@ def click_on_internal_links_in_header_unauth(self):
# Click on the 'Contacts', 'Specialists', 'Contributors', 'Used Resources' links
for link in self.get_list_of_internal_links_in_more():
self.click_more_button()
current_url = self.get_current_tab_url()
link.click()
time.sleep(1)
Wait(self.driver, 10).until(EC.url_changes(current_url))
opened_pages.append(self.get_current_tab_url())
print(*opened_pages, sep='\n') # Temporarily for debugging
return opened_pages

@allure.step("""Click on internal links in the Header and thereby open corresponding web pages in the same tab
Expand Down
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,12 @@ def used_resources_page_open(driver, main_page_open):
def auto_test_user_authorized(driver, main_page_open):
page = BasePage(driver)
page.element_is_present_and_clickable(MainPageLocators.LOGIN_BUTTON).click()
print("Current URL:", driver.current_url) # Temporarily for debugging
page.element_is_visible(LoginPageLocators.INPUT_LOGIN).send_keys(os.environ["LOGIN"])
page.element_is_visible(LoginPageLocators.INPUT_PASSWORD).send_keys(os.environ["PASSWORD"])
page.element_is_present_and_clickable(LoginPageLocators.SIGN_IN_BUTTON).click()
page.check_expected_link(MainPageLinks.URL_GROUPS_PAGE)
print("Current URL:", driver.current_url) # Temporarily for debugging
page = ProfilePage(driver)
page.loader_checking()

Expand Down
Loading