Skip to content

Commit 4269ade

Browse files
committed
Update Recorder Mode script-generation
1 parent 8c623cc commit 4269ade

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3309,7 +3309,11 @@ def __process_recorded_actions(self):
33093309
url2 = url1[:-3]
33103310
elif url2.endswith("/"):
33113311
url2 = url2[:-1]
3312-
if (url1 == url2) or (url1 == url2.replace("www.", "")):
3312+
if (
3313+
url1 == url2
3314+
or url1 == url2.replace("www.", "")
3315+
or (len(url1) > 0 and url2.startswith(url1))
3316+
):
33133317
srt_actions[n][0] = "f_url"
33143318
for n in range(len(srt_actions)):
33153319
if (

0 commit comments

Comments
 (0)