Any Picker
It is possible to find an Any Picker element by following attributes:
Name | Parameter(s) | Type | Description |
---|---|---|---|
anypickerByDataTestId | dataTestId | string | Searches for an any picker field by value of a Pega data-test-id attribute |
anypickerById | id | string | Searches for an any picker field by value of an id attribute |
Main action functions
Name | Parameter(s) | Type | Description |
---|---|---|---|
selectValue | value | string | Selects one value from the list with possible options |
openList | Opens the list with possible options by clicking an arrow icon | ||
deleteSelectedResult | value | string | Deletes one value from Anypicker field |
Assertions
Specific assertions
Name | Parameter(s) | Type | Description |
---|---|---|---|
resultsListShouldBeVisible | Checks if the list with possible values is visible | ||
resultsListShouldNotBeVisible | Checks if the list with possible values is not visible |
Common assertions
Name | Parameter(s) | Type | Description |
---|---|---|---|
shouldBeVisible | options? | { index?: number, timeout?: number, assertionTimeout?: number, interval?: number, retries?: number } | Checks if the element exists and visible |
shouldExist | options? | { index?: number, timeout?: number, assertionTimeout?: number, interval?: number, retries?: number } | Checks if the element exists |
shouldNotBeVisible | options? | { index?: number, timeout?: number, assertionTimeout?: number, interval?: number, retries?: number } | Checks if the element exists but is not visible |
shouldNotExist | options? | { index?: number, timeout?: number, assertionTimeout?: number, interval?: number, retries?: number } | Checks if the element does not exist |
shouldHaveValue | value | string | Checks if the element's value contains a given string |
shouldNotHaveValue | value | string | Checks if the element's value does not contain a given string |
Other helpers
Name | Parameter(s) | Type | Description |
---|---|---|---|
focus | options? | { index?: number, timeout?: number, interval?: number, retries?: number } | Focuses the element. A focused element is ready to be activated with a keyboard or any keyboard-emulating technology |
pressTab | Simulates "press Tab key" action | ||
click | options? | { index?: number, timeout?: number, interval?: number, retries?: number } | Clicks in the field |