35 | const dom = await browser.chrome.sendAndGetDevToolsCommand('DOMSnapshot.captureSnapshot', { |
36 | computedStyles: [] |
37 | }); |
38 | |
39 | assert.deepStrictEqual(dom, { |
40 | command: 'DOMSnapshot.captureSnapshot', |
41 | args: { |
189 | tree = self.client.send( |
190 | "DOMSnapshot.captureSnapshot", |
191 | {"computedStyles": [], "includeDOMRects": True, "includePaintOrder": True}, |
76 | async doGetText(): Promise<string> { |
77 | const result = await this.cdp.send("DOMSnapshot.captureSnapshot", { |
78 | computedStyles: [], |
83 | parseTextFromDOMSnapshot( |
84 | result: Protocol.DOMSnapshot.CaptureSnapshotResponse, |
85 | ): string { |
70 | if args != nil { |
71 | err = rpcc.Invoke(ctx, "DOMSnapshot.captureSnapshot", args, reply, d.conn) |
72 | } else { |
73 | err = rpcc.Invoke(ctx, "DOMSnapshot.captureSnapshot", nil, reply, d.conn) |
105 | before_dom = await cdp_client.send( |
106 | "DOMSnapshot.captureSnapshot", {"computedStyles": []} |
157 | after_dom = await cdp_client.send( |
158 | "DOMSnapshot.captureSnapshot", {"computedStyles": []} |
245 | * Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not |
246 | * designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead. |
254 | * Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not |
255 | * designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead. |
343 | def create_snapshot_request(): |
344 | return cdp_session.cdp_client.send.DOMSnapshot.captureSnapshot( |
345 | params={ |
255 | tree = self.client.send( |
256 | "DOMSnapshot.captureSnapshot", |
255 | tree = self.client.send( |
256 | "DOMSnapshot.captureSnapshot", |
257 | {"computedStyles": [], "includeDOMRects": True, "includePaintOrder": True}, |
107 | before_dom = await cdp_client.send( |
108 | "DOMSnapshot.captureSnapshot", {"computedStyles": []} |
159 | after_dom = await cdp_client.send( |
160 | "DOMSnapshot.captureSnapshot", {"computedStyles": []} |