Interface: Interactor
@atomic-testing/core.Interactor
Methods
click
▸ click(locator
, option?
): Promise
<void
>
Click on the desired element
Parameters
Name | Type |
---|---|
locator | PartLocator |
option? | Partial <ClickOption > |
Returns
Promise
<void
>
Defined in
packages/core/src/interactor/Interactor.ts:24
clone
▸ clone(): Interactor
Returns
Defined in
packages/core/src/interactor/Interactor.ts:109
enterText
▸ enterText(locator
, text
, option?
): Promise
<void
>
Type text into the desired element
Parameters
Name | Type |
---|---|
locator | PartLocator |
text | string |
option? | Partial <EnterTextOption > |
Returns
Promise
<void
>
Defined in
packages/core/src/interactor/Interactor.ts:52
exists
▸ exists(locator
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
locator | PartLocator |
Returns
Promise
<boolean
>
Defined in
packages/core/src/interactor/Interactor.ts:99
focus
▸ focus(locator
, option?
): Promise
<void
>
Parameters
Name | Type |
---|---|
locator | PartLocator |
option? | Partial <FocusOption > |
Returns
Promise
<void
>
Defined in
packages/core/src/interactor/Interactor.ts:45
getAttribute
▸ getAttribute(locator
, name
, isMultiple
): Promise
<readonly string
[]>
Parameters
Name | Type |
---|---|
locator | PartLocator |
name | string |
isMultiple | true |
Returns
Promise
<readonly string
[]>
Defined in
packages/core/src/interactor/Interactor.ts:87
▸ getAttribute(locator
, name
, isMultiple
): Promise
<Optional
<string
>>
Parameters
Name | Type |
---|---|
locator | PartLocator |
name | string |
isMultiple | false |
Returns
Promise
<Optional
<string
>>
Defined in
packages/core/src/interactor/Interactor.ts:88
▸ getAttribute(locator
, name
): Promise
<Optional
<string
>>
Parameters
Name | Type |
---|---|
locator | PartLocator |
name | string |
Returns
Promise
<Optional
<string
>>
Defined in
packages/core/src/interactor/Interactor.ts:89
getInputValue
▸ getInputValue(locator
): Promise
<Optional
<string
>>
Parameters
Name | Type |
---|---|
locator | PartLocator |
Returns
Promise
<Optional
<string
>>
Defined in
packages/core/src/interactor/Interactor.ts:75
getSelectLabels
▸ getSelectLabels(locator
): Promise
<Optional
<readonly string
[]>>
Get the select element's selected options' labels
Parameters
Name | Type |
---|---|
locator | PartLocator |
Returns
Promise
<Optional
<readonly string
[]>>
Defined in
packages/core/src/interactor/Interactor.ts:85
getSelectValues
▸ getSelectValues(locator
): Promise
<Optional
<readonly string
[]>>
Get the select element's selected options' values
Parameters
Name | Type |
---|---|
locator | PartLocator |
Returns
Promise
<Optional
<readonly string
[]>>
Defined in
packages/core/src/interactor/Interactor.ts:80
getStyleValue
▸ getStyleValue(locator
, propertyName
): Promise
<Optional
<string
>>
Get the value of a style property
Parameters
Name | Type |
---|---|
locator | PartLocator |
propertyName | CssProperty |
Returns
Promise
<Optional
<string
>>
Defined in
packages/core/src/interactor/Interactor.ts:96
getText
▸ getText(locator
): Promise
<Optional
<string
>>
Parameters
Name | Type |
---|---|
locator | PartLocator |
Returns
Promise
<Optional
<string
>>
Defined in
packages/core/src/interactor/Interactor.ts:98
hasAttribute
▸ hasAttribute(locator
, name
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
locator | PartLocator |
name | string |
Returns
Promise
<boolean
>
Defined in
packages/core/src/interactor/Interactor.ts:106
hasCssClass
▸ hasCssClass(locator
, className
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
locator | PartLocator |
className | string |
Returns
Promise
<boolean
>
Defined in
packages/core/src/interactor/Interactor.ts:105
hover
▸ hover(locator
, option?
): Promise
<void
>
Perform a mouse hover on the desired element
Parameters
Name | Type |
---|---|
locator | PartLocator |
option? | HoverOption |
Returns
Promise
<void
>
Defined in
packages/core/src/interactor/Interactor.ts:65
isChecked
▸ isChecked(locator
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
locator | PartLocator |
Returns
Promise
<boolean
>
Defined in
packages/core/src/interactor/Interactor.ts:100