I need to select the last item of a menu not knowing how many items are in a menu.
Is there a command to select the last item in an option menu?
Url to test
My macro code
{
"Name": "Select",
"CreationDate": "2020-12-19",
"Commands": [
{
"Command": "select",
"Target": "xpath=//*[@id=\"section-select-with-label\"]/section/div/select",
"Value": "index=0"
}
]
}
With index=0 i can select the first element but how i can select the last option (you must remember I do not know the number of option in select).
It exist a solution to count the option in select ?
It exist a command to select the last option in select ?
Thanks for suggestion