|
7406 | 7406 | }
|
7407 | 7407 | ]
|
7408 | 7408 | },
|
| 7409 | + { |
| 7410 | + "domain": "DOMSnapshot", |
| 7411 | + "experimental": true, |
| 7412 | + "description": "This domain facilitates obtaining document snapshots with DOM, layout, and style information.", |
| 7413 | + "dependencies": [ |
| 7414 | + "CSS", |
| 7415 | + "DOM", |
| 7416 | + "Page" |
| 7417 | + ], |
| 7418 | + "types": [ |
| 7419 | + { |
| 7420 | + "id": "DOMNode", |
| 7421 | + "type": "object", |
| 7422 | + "properties": [ |
| 7423 | + { |
| 7424 | + "name": "nodeType", |
| 7425 | + "type": "integer", |
| 7426 | + "description": "<code>Node</code>'s nodeType." |
| 7427 | + }, |
| 7428 | + { |
| 7429 | + "name": "nodeName", |
| 7430 | + "type": "string", |
| 7431 | + "description": "<code>Node</code>'s nodeName." |
| 7432 | + }, |
| 7433 | + { |
| 7434 | + "name": "nodeValue", |
| 7435 | + "type": "string", |
| 7436 | + "description": "<code>Node</code>'s nodeValue." |
| 7437 | + }, |
| 7438 | + { |
| 7439 | + "name": "backendNodeId", |
| 7440 | + "$ref": "DOM.BackendNodeId", |
| 7441 | + "description": "<code>Node</code>'s id, corresponds to DOM.Node.backendNodeId." |
| 7442 | + }, |
| 7443 | + { |
| 7444 | + "name": "childNodeIndexes", |
| 7445 | + "type": "array", |
| 7446 | + "items": { |
| 7447 | + "type": "integer" |
| 7448 | + }, |
| 7449 | + "optional": true, |
| 7450 | + "description": "The indexes of the node's child nodes in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any." |
| 7451 | + }, |
| 7452 | + { |
| 7453 | + "name": "attributes", |
| 7454 | + "type": "array", |
| 7455 | + "items": { |
| 7456 | + "$ref": "NameValue" |
| 7457 | + }, |
| 7458 | + "optional": true, |
| 7459 | + "description": "Attributes of an <code>Element</code> node." |
| 7460 | + }, |
| 7461 | + { |
| 7462 | + "name": "pseudoElementIndexes", |
| 7463 | + "type": "array", |
| 7464 | + "items": { |
| 7465 | + "type": "integer" |
| 7466 | + }, |
| 7467 | + "optional": true, |
| 7468 | + "description": "Indexes of pseudo elements associated with this node in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any." |
| 7469 | + }, |
| 7470 | + { |
| 7471 | + "name": "layoutNodeIndex", |
| 7472 | + "type": "integer", |
| 7473 | + "optional": true, |
| 7474 | + "description": "The index of the node's related layout tree node in the <code>layoutTreeNodes</code> array returned by <code>getSnapshot</code>, if any." |
| 7475 | + }, |
| 7476 | + { |
| 7477 | + "name": "documentURL", |
| 7478 | + "type": "string", |
| 7479 | + "optional": true, |
| 7480 | + "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." |
| 7481 | + }, |
| 7482 | + { |
| 7483 | + "name": "baseURL", |
| 7484 | + "type": "string", |
| 7485 | + "optional": true, |
| 7486 | + "description": "Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion." |
| 7487 | + }, |
| 7488 | + { |
| 7489 | + "name": "publicId", |
| 7490 | + "type": "string", |
| 7491 | + "optional": true, |
| 7492 | + "description": "<code>DocumentType</code> node's publicId." |
| 7493 | + }, |
| 7494 | + { |
| 7495 | + "name": "systemId", |
| 7496 | + "type": "string", |
| 7497 | + "optional": true, |
| 7498 | + "description": "<code>DocumentType</code> node's systemId." |
| 7499 | + }, |
| 7500 | + { |
| 7501 | + "name": "frameId", |
| 7502 | + "$ref": "Page.FrameId", |
| 7503 | + "optional": true, |
| 7504 | + "description": "Frame ID for frame owner elements." |
| 7505 | + }, |
| 7506 | + { |
| 7507 | + "name": "contentDocumentIndex", |
| 7508 | + "type": "integer", |
| 7509 | + "optional": true, |
| 7510 | + "description": "The index of a frame owner element's content document in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any." |
| 7511 | + }, |
| 7512 | + { |
| 7513 | + "name": "importedDocumentIndex", |
| 7514 | + "type": "integer", |
| 7515 | + "optional": true, |
| 7516 | + "description": "Index of the imported document's node of a link element in the <code>domNodes</code> array returned by <code>getSnapshot</code>, if any." |
| 7517 | + }, |
| 7518 | + { |
| 7519 | + "name": "templateContentIndex", |
| 7520 | + "type": "integer", |
| 7521 | + "optional": true, |
| 7522 | + "description": "Index of the content node of a template element in the <code>domNodes</code> array returned by <code>getSnapshot</code>." |
| 7523 | + }, |
| 7524 | + { |
| 7525 | + "name": "pseudoType", |
| 7526 | + "$ref": "DOM.PseudoType", |
| 7527 | + "optional": true, |
| 7528 | + "description": "Type of a pseudo element node." |
| 7529 | + } |
| 7530 | + ], |
| 7531 | + "description": "A Node in the DOM tree." |
| 7532 | + }, |
| 7533 | + { |
| 7534 | + "id": "LayoutTreeNode", |
| 7535 | + "type": "object", |
| 7536 | + "properties": [ |
| 7537 | + { |
| 7538 | + "name": "domNodeIndex", |
| 7539 | + "type": "integer", |
| 7540 | + "description": "The index of the related DOM node in the <code>domNodes</code> array returned by <code>getSnapshot</code>." |
| 7541 | + }, |
| 7542 | + { |
| 7543 | + "name": "boundingBox", |
| 7544 | + "$ref": "DOM.Rect", |
| 7545 | + "description": "The absolute position bounding box." |
| 7546 | + }, |
| 7547 | + { |
| 7548 | + "name": "layoutText", |
| 7549 | + "type": "string", |
| 7550 | + "optional": true, |
| 7551 | + "description": "Contents of the LayoutText, if any." |
| 7552 | + }, |
| 7553 | + { |
| 7554 | + "name": "inlineTextNodes", |
| 7555 | + "type": "array", |
| 7556 | + "optional": true, |
| 7557 | + "items": { |
| 7558 | + "$ref": "CSS.InlineTextBox" |
| 7559 | + }, |
| 7560 | + "description": "The post-layout inline text nodes, if any." |
| 7561 | + }, |
| 7562 | + { |
| 7563 | + "name": "styleIndex", |
| 7564 | + "type": "integer", |
| 7565 | + "optional": true, |
| 7566 | + "description": "Index into the <code>computedStyles</code> array returned by <code>getSnapshot</code>." |
| 7567 | + } |
| 7568 | + ], |
| 7569 | + "description": "Details of an element in the DOM tree with a LayoutObject." |
| 7570 | + }, |
| 7571 | + { |
| 7572 | + "id": "ComputedStyle", |
| 7573 | + "type": "object", |
| 7574 | + "properties": [ |
| 7575 | + { |
| 7576 | + "name": "properties", |
| 7577 | + "type": "array", |
| 7578 | + "items": { |
| 7579 | + "$ref": "NameValue" |
| 7580 | + }, |
| 7581 | + "description": "Name/value pairs of computed style properties." |
| 7582 | + } |
| 7583 | + ], |
| 7584 | + "description": "A subset of the full ComputedStyle as defined by the request whitelist." |
| 7585 | + }, |
| 7586 | + { |
| 7587 | + "id": "NameValue", |
| 7588 | + "type": "object", |
| 7589 | + "properties": [ |
| 7590 | + { |
| 7591 | + "name": "name", |
| 7592 | + "type": "string", |
| 7593 | + "description": "Attribute/property name." |
| 7594 | + }, |
| 7595 | + { |
| 7596 | + "name": "value", |
| 7597 | + "type": "string", |
| 7598 | + "description": "Attribute/property value." |
| 7599 | + } |
| 7600 | + ], |
| 7601 | + "description": "A name/value pair." |
| 7602 | + } |
| 7603 | + ], |
| 7604 | + "commands": [ |
| 7605 | + { |
| 7606 | + "name": "getSnapshot", |
| 7607 | + "parameters": [ |
| 7608 | + { |
| 7609 | + "name": "computedStyleWhitelist", |
| 7610 | + "type": "array", |
| 7611 | + "items": { |
| 7612 | + "type": "string" |
| 7613 | + }, |
| 7614 | + "description": "Whitelist of computed styles to return." |
| 7615 | + } |
| 7616 | + ], |
| 7617 | + "returns": [ |
| 7618 | + { |
| 7619 | + "name": "domNodes", |
| 7620 | + "type": "array", |
| 7621 | + "items": { |
| 7622 | + "$ref": "DOMNode" |
| 7623 | + }, |
| 7624 | + "description": "The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document." |
| 7625 | + }, |
| 7626 | + { |
| 7627 | + "name": "layoutTreeNodes", |
| 7628 | + "type": "array", |
| 7629 | + "items": { |
| 7630 | + "$ref": "LayoutTreeNode" |
| 7631 | + }, |
| 7632 | + "description": "The nodes in the layout tree." |
| 7633 | + }, |
| 7634 | + { |
| 7635 | + "name": "computedStyles", |
| 7636 | + "type": "array", |
| 7637 | + "items": { |
| 7638 | + "$ref": "ComputedStyle" |
| 7639 | + }, |
| 7640 | + "description": "Whitelisted ComputedStyle properties for each node in the layout tree." |
| 7641 | + } |
| 7642 | + ], |
| 7643 | + "description": "Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened. " |
| 7644 | + } |
| 7645 | + ] |
| 7646 | + }, |
7409 | 7647 | {
|
7410 | 7648 | "domain": "IO",
|
7411 | 7649 | "description": "Input/Output operations for streams produced by DevTools.",
|
|
0 commit comments