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

Function _stack_frames

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

Source from the content-addressed store, hash-verified

152
153
154def _stack_frames(stack_trace: Any) -> list[dict]:
155 if isinstance(stack_trace, dict):
156 frames = stack_trace.get("callFrames")
157 if isinstance(frames, list):
158 return [frame for frame in frames if isinstance(frame, dict)]
159 return []
160
161
162def _format_stack_trace(stack_trace: Any) -> str | None:

Calls 1

getMethod · 0.65

Tested by

no test coverage detected