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

Function _stack_frames

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

Source from the content-addressed store, hash-verified

273
274
275def _stack_frames(stack_trace: Any) -> list[dict]:
276 if isinstance(stack_trace, dict):
277 frames = stack_trace.get("callFrames")
278 if isinstance(frames, list):
279 return [frame for frame in frames if isinstance(frame, dict)]
280 return []
281
282
283def _format_stack_trace(stack_trace: Any) -> str | None:

Calls 1

getMethod · 0.65

Tested by

no test coverage detected