Button
UIA Pro is supported as a technical preview.
UIAPro. Button
new Button(propsopt) → {Button}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props | Object |
<optional> | Initializes a UIAPro Button test object using the supplied property bag. |
Returns:
- Type
- Button
Methods
absX(absXopt) → {number|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
absX | number |
<optional> | When provided, this method acts as a setter and sets the absX value. |
Returns:
- Type
- number | Description
absY(absYopt) → {number|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
absY | number |
<optional> | When provided, this method acts as a setter and sets the absY value. |
Returns:
- Type
- number | Description
acceleratorKey(acceleratorKeyopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
acceleratorKey | string |
<optional> | When provided, this method acts as a setter and sets the acceleratorKey value. |
Returns:
- Type
- string | Description
accessKey(accessKeyopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
accessKey | string |
<optional> | When provided, this method acts as a setter and sets the accessKey value. |
Returns:
- Type
- string | Description
automationId(automationIdopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
automationId | string |
<optional> | When provided, this method acts as a setter and sets the automationId value. |
Returns:
- Type
- string | Description
controlType(controlTypeopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
controlType | string |
<optional> | When provided, this method acts as a setter and sets the controlType value. |
Returns:
- Type
- string | Description
frameworkId(frameworkIdopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
frameworkId | string |
<optional> | When provided, this method acts as a setter and sets the frameworkId value. |
Returns:
- Type
- string | Description
handle(handleopt) → {number|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
handle | number |
<optional> | When provided, this method acts as a setter and sets the handle value. |
Returns:
- Type
- number | Description
hasKeyBoardFocus(hasKeyBoardFocusopt) → {boolean|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
hasKeyBoardFocus | boolean |
<optional> | When provided, this method acts as a setter and sets the hasKeyBoardFocus value. |
Returns:
- Type
- boolean | Description
height(heightopt) → {number|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
height | number |
<optional> | When provided, this method acts as a setter and sets the height value. |
Returns:
- Type
- number | Description
isEnabled(isEnabledopt) → {boolean|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
isEnabled | boolean |
<optional> | When provided, this method acts as a setter and sets the isEnabled value. |
Returns:
- Type
- boolean | Description
isKeyboardFocusable(isKeyboardFocusableopt) → {boolean|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
isKeyboardFocusable | boolean |
<optional> | When provided, this method acts as a setter and sets the isKeyboardFocusable value. |
Returns:
- Type
- boolean | Description
isOffScreen(isOffScreenopt) → {boolean|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
isOffScreen | boolean |
<optional> | When provided, this method acts as a setter and sets the isOffScreen value. |
Returns:
- Type
- boolean | Description
isPassword(isPasswordopt) → {boolean|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
isPassword | boolean |
<optional> | When provided, this method acts as a setter and sets the isPassword value. |
Returns:
- Type
- boolean | Description
name(nameopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name | string |
<optional> | When provided, this method acts as a setter and sets the name value. |
Returns:
- Type
- string | Description
nativeClass(nativeClassopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
nativeClass | string |
<optional> | When provided, this method acts as a setter and sets the nativeClass value. |
Returns:
- Type
- string | Description
path(pathopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path | string |
<optional> | When provided, this method acts as a setter and sets the path value. |
Returns:
- Type
- string | Description
processId(processIdopt) → {number|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
processId | number |
<optional> | When provided, this method acts as a setter and sets the processId value. |
Returns:
- Type
- number | Description
processName(processNameopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
processName | string |
<optional> | When provided, this method acts as a setter and sets the processName value. |
Returns:
- Type
- string | Description
status(statusopt) → {string|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
status | string |
<optional> | When provided, this method acts as a setter and sets the status value. |
Returns:
- Type
- string | Description
supportedPatterns(supportedPatternsopt) → {Array.<string>|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
supportedPatterns | Array.<string> |
<optional> | When provided, this method acts as a setter and sets the supportedPatterns value. |
Returns:
- Type
- Array.<string> | Description
width(widthopt) → {number|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
width | number |
<optional> | When provided, this method acts as a setter and sets the width value. |
Returns:
- Type
- number | Description
x(xopt) → {number|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
x | number |
<optional> | When provided, this method acts as a setter and sets the x value. |
Returns:
- Type
- number | Description
y(yopt) → {number|Description}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
y | number |
<optional> | When provided, this method acts as a setter and sets the y value. |
Returns:
- Type
- number | Description