Skip to content

Issue_433_EXERCISES_WORDS_RU_PAGE_links #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2025
Merged
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
8 changes: 4 additions & 4 deletions pages/exercises_ru_words_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_subgroup_link_status_codes(self):
def click_on_breadcrumbs_links(self):
opened_pages = []
self.element_is_present_and_clickable(self.locators.PAGE_LIST1_1).click()
Wait(self.driver, self.timeout).until(EC.url_changes(self.driver.current_url))
Wait(self.driver, self.timeout).until(EC.url_changes(self.get_current_tab_url()))
opened_pages.append(self.get_current_tab_url())
self.driver.back()

Expand All @@ -192,12 +192,12 @@ def click_on_breadcrumbs_links(self):
@allure.step("Click on group links and thereby open corresponding web pages in the same tab")
def click_on_group_links(self):
group_links = self.get_list2_of_group_links()
opened_pages = [self.driver.current_url]
opened_pages = [self.get_current_tab_url()]

for link in group_links[1:]:
link.click()
Wait(self.driver, self.timeout).until(EC.url_changes(self.driver.current_url))
opened_pages.append(self.driver.current_url)
Wait(self.driver, self.timeout).until(EC.url_changes(self.get_current_tab_url()))
opened_pages.append(self.get_current_tab_url())

print(*opened_pages, sep='\n')
return opened_pages
Expand Down