@@ -172,46 +172,34 @@ def get_links_status_codes(self):
172172 def click_on_links_on_ru_local (self ):
173173 opened_pages = []
174174 starting_url = self .driver .current_url
175- print (starting_url )
176175
177176 link1 = self .element_is_present_and_clickable (self .locators .PAGE_LINK1 )
178- # current_url = self.driver.current_url
179177 link1 .click ()
180178
181179 # Waiting for the first URL change (intermediate page)
182180 Wait (self .driver , 10 ).until (EC .url_changes (starting_url ))
183181 intermediate_url = self .driver .current_url
184- print (intermediate_url )
185182
186183 # Waiting for the second URL change (aimed page)
187184 Wait (self .driver , 10 ).until (EC .url_changes (intermediate_url ))
188- current_url = self .driver .current_url
189- print (current_url )
190185
191186 opened_pages .append (self .get_current_tab_url ())
192187
193188 self .element_is_present_and_clickable (self .locators1 .LOGO_LINK ).click ()
194- starting_url = self .driver .current_url
195- print (starting_url )
196189
197190 # Waiting for the starting page loading
198191 Wait (self .driver , 10 ).until (EC .presence_of_element_located ((By .TAG_NAME , "h3" )))
192+ starting_url = self .driver .current_url
199193
200194 link2 = self .element_is_present_and_clickable (self .locators .PAGE_LINK2 )
201- # current_url = self.driver.current_url
202195 link2 .click ()
203196
204197 # Waiting for the first URL change (intermediate page)
205198 Wait (self .driver , 10 ).until (EC .url_changes (starting_url ))
206199 intermediate_url = self .driver .current_url
207- print (intermediate_url )
208200
209201 # Waiting for the second URL change (aimed page)
210202 Wait (self .driver , 10 ).until (EC .url_changes (intermediate_url ))
211- current_url = self .driver .current_url
212- print (current_url )
213-
214- # Wait(self.driver, 10).until(EC.url_changes(current_url))
215203
216204 opened_pages .append (self .get_current_tab_url ())
217205 print (opened_pages )
0 commit comments