We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87357f2 commit a203c77Copy full SHA for a203c77
seleniumbase/fixtures/page_utils.py
@@ -166,11 +166,17 @@ def _get_unique_links(page_url, soup):
166
elif link.startswith('/'):
167
link = full_base_url + link
168
elif link.startswith('./'):
169
- link = full_base_url + link[1:]
+ f_b_url = full_base_url
170
+ if len(simple_url.split('/')) > 1:
171
+ f_b_url = full_base_url + "/" + simple_url.split('/')[1]
172
+ link = f_b_url + link[1:]
173
elif link.startswith('#'):
174
175
elif '//' not in link:
- link = full_base_url + "/" + link
176
177
178
179
+ link = f_b_url + "/" + link
180
else:
181
pass
182
unique_links.append(link)
0 commit comments