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

Function _format_stack_trace

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

Source from the content-addressed store, hash-verified

281
282
283def _format_stack_trace(stack_trace: Any) -> str | None:
284 frames = _stack_frames(stack_trace)
285 if not frames:
286 return None
287 lines = []
288 for frame in frames:
289 name = frame.get("functionName") or "<anonymous>"
290 lines.append(f" at {name} ({frame.get('url')}:{frame.get('lineNumber')}:{frame.get('columnNumber')})")
291 return "\n".join(lines)
292
293
294def 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