Radio inputs
Interactions with input
with attribute type="radio"
.
Reading the element
Getting the right element class for the xpath
Try to get a RadioInputElement
Reference
Get all radio options
Given one radio element, you can query by another options with same @name
attribute. This method will returns a dict with radio values and it's respective label text associated.
Get all radio options values
Get all radio options labels
This method will return all texts from labels pointing to radio elements with same @name
of the source radio element.
Select a radio option by label
Following the same rule, you can select another radio from the form with the same @name
of the source radio element.
Select a radio option by value
To just active the source radio element
Check if radios have some option
To check by both label and value.
Check if radios have some option label
Check if radios have some option value
Print the options of the radio
Extra needed!
To use this method, you need to install the debug extras, as shown here, with the command pip install "fastrpa[debug]"
.