I need help choosing an item from a list

I am developing web automation for a ferry booking website.
My script selects the departure and arrival ports, the date of departure, and a single passenger. (Other scripts are used to select different passengers and vehicles.)
Now, I need to automate the selection of accommodations (for example, “Standard”) for a specific ferry company (for example, “Adria”), ensuring it matches the date and time of departure.
In the given example (Bari-Durres on 22/09/2024), there are three departures, one for each company, but sometimes there may be multiple departures for the same company within a few hours.
Thank you for your help.

{
“Name”: “TlinUivForumScData”,
“CreationDate”: “2024-9-6”,
“Commands”: [
{
“Command”: “store”,
“Target”: “Bari - Durazzo 22/09/2024”,
“Value”: “ScURL”,
“Description”: “”
},
{
“Command”: “open”,
“Target”: “${ScUrl}”,
“Value”: “”,
“Description”: “apre booking con parametri saltando la home page”
}
]
}

Can you please link to the website?

The website is https://www.traghettilines.it. My macro bypasses the homepage and goes directly to the second step of booking. I use the Italian version of the site, but please use the language you prefer. Thank you for your assistance.

No one could assist… thus, I’ve discovered a quite complex workaround.

I would like to simplify it using this suggestion from “iMacros => Ui.Vision Commands Table”

" TAG POS=3… In UIV the same is achieved by adding @pos=3 behind the locator"

How can locators like these:
xpath=//input[@name=‘DepartId’ and @value=‘1047848’]
xpath=//input[@name=‘DepartId’ and @value=‘1919449’]
xpath=//input[@name=‘DepartId’ and @value=‘1915896’]
converted?
I’ve tried this (and some other like this):
xpath=//input[@name=‘DepartId’ and @value=‘*’]@pos=1
but it doesn’t work.