Skip to content

Commit f64f1df

Browse files
ref test_erw_03.04, test_erw_03.05 Verify navigation on links
update exercises_ru_words_page.py #433
1 parent 640e3d0 commit f64f1df

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pages/exercises_ru_words_page.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_subgroup_link_status_codes(self):
175175
def click_on_breadcrumbs_links(self):
176176
opened_pages = []
177177
self.element_is_present_and_clickable(self.locators.PAGE_LIST1_1).click()
178-
Wait(self.driver, self.timeout).until(EC.url_changes(self.driver.current_url))
178+
Wait(self.driver, self.timeout).until(EC.url_changes(self.get_current_tab_url()))
179179
opened_pages.append(self.get_current_tab_url())
180180
self.driver.back()
181181

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

197197
for link in group_links[1:]:
198198
link.click()
199-
Wait(self.driver, self.timeout).until(EC.url_changes(self.driver.current_url))
200-
opened_pages.append(self.driver.current_url)
199+
Wait(self.driver, self.timeout).until(EC.url_changes(self.get_current_tab_url()))
200+
opened_pages.append(self.get_current_tab_url())
201201

202202
print(*opened_pages, sep='\n')
203203
return opened_pages

0 commit comments

Comments
 (0)