selectbytext
Last updated
Last updated
Select a dropdown, a checkbox or radiobutton.
Property
text
text display on the screen. Can be empty.
Parameter
item
item to select in the list
The associated label
, aria-label
, name
, current selected item
or adjacent text
can be used to identify the list.
For example, in , the car list has a label
"Choose a car:"
if we use the action "selectbytext" with Property="Choose a car:" and Parameter="Opel", it will select the item Opel in the car list :
if we use the action "selectbytext" with Property=empty and Parameter="Volvo", it will select the item Volvo in the car list
Property
text
text (or part of the text) display on the screen.
Parameter
yes
The associated label
, aria-label
, name
, value
or adjacent text
can be used to identify the checkbox.
if we use the action "selectbytext" with Property="I have a bike", it will check "I have a bike":
We can set property with 2 texts seperated by a "|". In this case it will search for a check box in a group described by its text.
For example, if we use the action "selectbytext" with property="Show Checkboxes|I have a car", it will check I have a car in the group Show Checkboxes:
Property
text
text (or part of the text) display on the screen.
Parameter
yes
The associated label
, aria-label
, name
, value
or adjacent text
can be used to identify the radio.
If we use the action "selectbytext" with property="31 - 60", it will select the radio 31 - 60 :
We can set property with 2 texts seperated by a "|". In this case it will search for a radio in a group described by its text.
For example, if we use the action "selectbytext" with property="your age|0-30", it will select 0-30 :
For example, in , the bike checkbox has a label
"I have a bike"
For example, in , a radio button has a label
"31 - 60"