File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments