Skip to content

Commit e327168

Browse files
committed
Update SeleniumBase Codegen / Recorder Mode
1 parent 9fb3378 commit e327168

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5419,6 +5419,20 @@ def __process_recorded_actions(self):
54195419
)
54205420
):
54215421
srt_actions[n][0] = "_skip"
5422+
for n in range(len(srt_actions)):
5423+
if (
5424+
(srt_actions[n][0] == "begin" or srt_actions[n][0] == "_url_")
5425+
and n > 1
5426+
and (
5427+
srt_actions[n - 1][0] == "f_url"
5428+
or srt_actions[n - 1][0] == "_url_"
5429+
)
5430+
and srt_actions[n][2] == srt_actions[n - 1][2]
5431+
and (
5432+
int(srt_actions[n][3]) - int(srt_actions[n - 1][3]) < 4800
5433+
)
5434+
):
5435+
srt_actions[n][0] = "_skip"
54225436
for n in range(len(srt_actions)):
54235437
if (
54245438
srt_actions[n][0] == "input"

0 commit comments

Comments
 (0)