SerializedAXNode 接口
🌐 SerializedAXNode interface
表示一个节点及其与可访问性相关的属性。
🌐 Represents a Node and the properties of it that are relevant to Accessibility.
语法
🌐 Signature
export interface SerializedAXNode
属性
🌐 Properties
|
属性 🌐 Property |
修饰符 🌐 Modifiers |
类型 🌐 Type |
描述 🌐 Description |
默认 🌐 Default |
|---|---|---|---|---|
|
atomic |
|
boolean |
无论活动区域是否是原子。 🌐 Whether the live region is atomic. | |
|
autocomplete |
|
string | ||
|
busy |
|
boolean |
节点是否繁忙。 🌐 Whether the node is busy. | |
|
checked |
|
布尔 |“混合” 🌐 boolean | 'mixed' |
无论复选框是否被选中,或处于混合状态。 🌐 Whether the checkbox is checked, or in a mixed state. | |
|
children |
|
序列化AX节点[] |
该节点的子节点(如果有)。 🌐 Children of this node, if there are any. | |
|
description |
|
string |
节点的附加人类可读描述。 🌐 An additional human readable description of the node. | |
|
details |
|
string |
该节点的详细信息。 🌐 The details for the node. | |
|
disabled |
|
boolean | ||
|
errormessage |
|
string |
该节点的错误信息。 🌐 The error message for the node. | |
|
expanded |
|
boolean | ||
|
focused |
|
boolean | ||
|
haspopup |
|
string | ||
|
invalid |
|
string |
该节点的值是否以及以什么方式无效。 🌐 Whether and in what way this node's value is invalid. | |
|
keyshortcuts |
|
string |
与此节点关联的任何键盘快捷键。 🌐 Any keyboard shortcuts associated with this node. | |
|
level |
|
number |
标题的级别。 🌐 The level of a heading. | |
|
live |
|
string |
节点的实时状态。 🌐 The live status of the node. | |
|
modal |
|
boolean | ||
|
multiline |
|
boolean | ||
|
multiselectable |
|
boolean |
是否可以选择多个子级。 🌐 Whether more than one child can be selected. | |
|
name |
|
string |
节点的人类可读名称。 🌐 A human readable name for the node. | |
|
orientation |
|
string | ||
|
pressed |
|
布尔 |“混合” 🌐 boolean | 'mixed' |
节点是否处于选中状态或处于混合状态。 🌐 Whether the node is checked or in a mixed state. | |
|
readonly |
|
boolean | ||
|
relevant |
|
string |
适用于实时区域的相关更改。 🌐 The relevant changes for the live region. | |
|
required |
|
boolean | ||
|
role |
string |
节点的角色。 🌐 The role of the node. | ||
|
roledescription |
|
string |
该角色的人类可读替代方案。 🌐 A human readable alternative to the role. | |
|
selected |
|
boolean | ||
|
url |
|
string |
链接元素的 URL。 🌐 Url for link elements. | |
|
value |
|
字符串 | 数字 🌐 string | number |
节点的当前值。 🌐 The current value of the node. | |
|
valuemax |
|
number | ||
|
valuemin |
|
number | ||
|
valuetext |
|
string |
当前值的描述。 🌐 A description of the current value. |
方法
🌐 Methods
|
方法 🌐 Method |
描述 🌐 Description |
|---|---|
|
如果可用,获取此 AXNode 的 ElementHandle。 🌐 Get an ElementHandle for this AXNode if available. 如果底层 DOM 元素已被处置,该方法可能会返回错误。 🌐 If the underlying DOM element has been disposed, the method might return an error. |