Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/replay/shared/interfaces/IDomChangeEvent.ts
2645 views
1
export interface IDomChangeEvent {
2
nodeId: number;
3
tabId: number;
4
eventIndex: number;
5
action: DomActionType;
6
timestamp: number;
7
frameIdPath: string;
8
commandId: number;
9
nodeType?: number;
10
textContent?: string;
11
tagName?: string;
12
namespaceUri?: string;
13
previousSiblingId?: number;
14
parentNodeId?: number;
15
attributes?: { [key: string]: string };
16
attributeNamespaces?: { [key: string]: string };
17
properties?: { [key: string]: string | boolean | number | string[] };
18
}
19
20
export type IFrontendDomChangeEvent = Omit<IDomChangeEvent, 'tabId' | 'commandId'>;
21
22
// NOTE: copied from interfaces
23
export enum DomActionType {
24
newDocument = 0,
25
location = 1,
26
added = 2,
27
removed = 3,
28
text = 4,
29
attribute = 5,
30
property = 6,
31
}
32
33