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

Method start

playwright/_impl/_tracing.py:42–68  ·  view source on GitHub ↗
(
        self,
        name: str = None,
        title: str = None,
        snapshots: bool = None,
        screenshots: bool = None,
        sources: bool = None,
        live: bool = None,
    )

Source from the content-addressed store, hash-verified

40 self._har_recorders: Dict[str, Dict[str, str]] = {}
41
42 async def start(
43 self,
44 name: str = None,
45 title: str = None,
46 snapshots: bool = None,
47 screenshots: bool = None,
48 sources: bool = None,
49 live: bool = None,
50 ) -> None:
51 params = locals_to_params(locals())
52 self._include_sources = bool(sources)
53 self._is_live = bool(live)
54
55 await self._channel.send(
56 "tracingStart",
57 None,
58 {
59 "name": name,
60 "snapshots": snapshots,
61 "screenshots": screenshots,
62 "live": live,
63 },
64 )
65 trace_name = await self._channel.send(
66 "tracingStartChunk", None, {"title": title, "name": name}
67 )
68 await self._start_collecting_stacks(trace_name)
69
70 async def start_chunk(self, title: str = None, name: str = None) -> None:
71 params = locals_to_params(locals())

Callers

nothing calls this directly

Calls 3

locals_to_paramsFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected