Skip to main content
Version: 24.38.0

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

optional

boolean

无论活动区域是否是原子

🌐 Whether the live region is atomic.

autocomplete

optional

string

busy

optional

boolean

节点是否繁忙

🌐 Whether the node is busy.

checked

optional

布尔 |“混合”

🌐 boolean | 'mixed'

无论复选框是否被选中,或处于混合状态

🌐 Whether the checkbox is checked, or in a mixed state.

children

optional

序列化AX节点[]

该节点的子节点(如果有)。

🌐 Children of this node, if there are any.

description

optional

string

节点的附加人类可读描述。

🌐 An additional human readable description of the node.

details

optional

string

该节点的详细信息

🌐 The details for the node.

disabled

optional

boolean

errormessage

optional

string

该节点的错误信息

🌐 The error message for the node.

expanded

optional

boolean

focused

optional

boolean

haspopup

optional

string

invalid

optional

string

该节点的值是否以及以什么方式无效。

🌐 Whether and in what way this node's value is invalid.

keyshortcuts

optional

string

与此节点关联的任何键盘快捷键。

🌐 Any keyboard shortcuts associated with this node.

level

optional

number

标题的级别。

🌐 The level of a heading.

live

optional

string

节点的实时状态。

🌐 The live status of the node.

modal

optional

boolean

multiline

optional

boolean

multiselectable

optional

boolean

是否可以选择多个子级。

🌐 Whether more than one child can be selected.

name

optional

string

节点的人类可读名称。

🌐 A human readable name for the node.

orientation

optional

string

pressed

optional

布尔 |“混合”

🌐 boolean | 'mixed'

节点是否处于选中状态或处于混合状态。

🌐 Whether the node is checked or in a mixed state.

readonly

optional

boolean

relevant

optional

string

适用于实时区域的相关更改。

🌐 The relevant changes for the live region.

required

optional

boolean

role

string

节点的角色

🌐 The role of the node.

roledescription

optional

string

该角色的人类可读替代方案。

🌐 A human readable alternative to the role.

selected

optional

boolean

url

optional

string

链接元素的 URL。

🌐 Url for link elements.

value

optional

字符串 | 数字

🌐 string | number

节点的当前值。

🌐 The current value of the node.

valuemax

optional

number

valuemin

optional

number

valuetext

optional

string

当前值的描述。

🌐 A description of the current value.

方法

🌐 Methods

方法

🌐 Method

描述

🌐 Description

elementHandle()

如果可用,获取此 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.