Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions brozzler/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,12 @@ def run_behavior(self, behavior_script, timeout=900):
lambda: self.websock_thread.received_result(msg_id), timeout=5
)
msg = self.websock_thread.pop_result(msg_id)

self.logger.info("Behavior status is %s", str(msg))
# Behavior response while still running
# {'id': 8, 'result': {'result': {'type': 'boolean', 'value': False}}}
# Behavior response when finished
# {'id': 9, 'result': {'result': {'type': 'boolean', 'value': True}}}
if (
msg
and "result" in msg
Expand Down