MCPcopy Create free account
hub / github.com/microsoft/playwright-python / format_log_recording

Function format_log_recording

playwright/_impl/_waiter.py:187–195  ·  view source on GitHub ↗
(log: List[str])

Source from the content-addressed store, hash-verified

185
186
187def format_log_recording(log: List[str]) -> str:
188 if not log:
189 return ""
190 header = " logs "
191 header_length = 60
192 left_length = math.floor((header_length - len(header)) / 2)
193 right_length = header_length - len(header) - left_length
194 new_line = "\n"
195 return f"{new_line}{'=' * left_length}{header}{'=' * right_length}{new_line}{new_line.join(log)}{new_line}{'=' * header_length}"

Callers 1

_rejectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected