Skip to content

Commit

Permalink
fix replay bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IBMC265 committed Sep 25, 2024
1 parent eece7b2 commit c3e540c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion litewebagent/utils/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ def take_action(step, playwright_manager, is_replay, log_folder):
_post_extract(page)
url = page.url
element = find_matching_element(interactive_elements, step)
action = replace_number(step["action"], element['bid'])
if element:
action = replace_number(step["action"], element['bid'])
else:
action = step["action"]
code, function_calls = action_set.to_python_code(action)
logger.info("Executing action script")
if is_replay:
Expand Down

0 comments on commit c3e540c

Please sign in to comment.