How-to
Select text (selectText)
Select text (selectText)
Selects the text inside the Target.
Step model
action_name | selectText |
| Group | Input |
| Target | Required |
| Value | Unused |
| expected_value | Unused |
| TEST_ACCOUNT | Forbidden |
| Do not confuse with | fill, press |
Target/Value facts match the source-of-truth catalog and Autotest step.
Prerequisites
- The Target has text that can be selected.
Steps
- Add a
selectTextstep. - Set Target.
- Leave Value empty.
- Save.
The step is stored on the autotest. Next - neighbouring steps or autotest run creation.
Examples
Comment
Fields in the UI:
| Field | Value |
|---|---|
action_name | selectText |
| Target | kind LABEL, value Comment |
Step JSON fragment (copy-paste):
json
{
"action_name": "selectText",
"target": {
"kind": "LABEL",
"value": "Comment"
}
}Common mistakes
- The step selects the element text. It does not pick a list option. Use
selectOptionfor a list.
Screenshots
Screenshots of the step form for selectText will be added here in a later pass.
Did this page help?