You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v2/gcdapi/accessibility.go
+134-4Lines changed: 134 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ type AccessibilityAXValueSource struct {
16
16
Attributestring`json:"attribute,omitempty"`// The name of the relevant attribute, if any.
17
17
AttributeValue*AccessibilityAXValue`json:"attributeValue,omitempty"`// The value of the relevant attribute, if any.
18
18
Supersededbool`json:"superseded,omitempty"`// Whether this source is superseded by a higher priority source.
19
-
NativeSourcestring`json:"nativeSource,omitempty"`// The native markup source for this value, e.g. a <label> element. enum values: figcaption, label, labelfor, labelwrapped, legend, rubyannotation, tablecaption, title, other
19
+
NativeSourcestring`json:"nativeSource,omitempty"`// The native markup source for this value, e.g. a <label> element. enum values: description, figcaption, label, labelfor, labelwrapped, legend, rubyannotation, tablecaption, title, other
20
20
NativeSourceValue*AccessibilityAXValue`json:"nativeSourceValue,omitempty"`// The value, such as a node or node list, of the native source.
21
21
Invalidbool`json:"invalid,omitempty"`// Whether the value for this property is invalid.
22
22
InvalidReasonstring`json:"invalidReason,omitempty"`// Reason for the value being invalid, if it is.
@@ -53,8 +53,26 @@ type AccessibilityAXNode struct {
53
53
Description*AccessibilityAXValue`json:"description,omitempty"`// The accessible description for this `Node`.
54
54
Value*AccessibilityAXValue`json:"value,omitempty"`// The value for this `Node`.
55
55
Properties []*AccessibilityAXProperty`json:"properties,omitempty"`// All other properties
56
+
ParentIdstring`json:"parentId,omitempty"`// ID for this node's parent.
56
57
ChildIds []string`json:"childIds,omitempty"`// IDs for each of this node's child nodes.
57
58
BackendDOMNodeIdint`json:"backendDOMNodeId,omitempty"`// The backend ID for the associated DOM node, if any.
59
+
FrameIdstring`json:"frameId,omitempty"`// The frame ID for the frame associated with this nodes document.
60
+
}
61
+
62
+
// The loadComplete event mirrors the load complete event sent by the browser to assistive technology when the web page has finished loading.
63
+
typeAccessibilityLoadCompleteEventstruct {
64
+
Methodstring`json:"method"`
65
+
Paramsstruct {
66
+
Root*AccessibilityAXNode`json:"root"`// New document root node.
67
+
} `json:"Params,omitempty"`
68
+
}
69
+
70
+
// The nodesUpdated event is sent every time a previously requested node has changed the in tree.
// JavaScript object id of the node wrapper to get.
261
+
ObjectIdstring`json:"objectId,omitempty"`
262
+
}
263
+
264
+
// GetAXNodeAndAncestorsWithParams - Fetches a node and all ancestors up to and including the root. Requires `enable()` to have been called previously.
0 commit comments