MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / _format_stack_trace

Function _format_stack_trace

py/private/_script_handlers.py:162–170  ·  view source on GitHub ↗
(stack_trace: Any)

Source from the content-addressed store, hash-verified

160
161
162def _format_stack_trace(stack_trace: Any) -> str | None:
163 frames = _stack_frames(stack_trace)
164 if not frames:
165 return None
166 lines = []
167 for frame in frames:
168 name = frame.get("functionName") or "<anonymous>"
169 lines.append(f" at {name} ({frame.get('url')}:{frame.get('lineNumber')}:{frame.get('columnNumber')})")
170 return "\n".join(lines)
171
172
173def console_message_from_log_entry(params: dict) -> ConsoleMessage:

Calls 3

_stack_framesFunction · 0.85
getMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected