Hello, I’m an old and skilled iMacros user and a new Uivision Entreprise Edition customer.
I’m very new to Uivision, I’ve got the extremely basic skills, and I’m trying to learn some “advanced” feature.
I’m learning JavaScript too, to use “executeScript” as I must do complex tasks.
My application is in Microsoft Access/ VBA, from which I send command to Uivision (instead of iMacros).
I’m working on the booking app of the shipping website https://www.balearia.com/es.
From the first page I need to:
- Choose one-way trip (done)
- select start and destination port (almost done)
- choose date of departure (very tricky date control, I need help)
- choose passengers (done)
- select vehicle type (done)
With the macro below I can do step a) and b)
As for step c) I accept all suggestions!
For example, to click 15/9/2024, in my mind I’d need to:
- send Uiv ${!cmd_var1} with “9” or “September”
- read current month (e.g. “July”)
- decide how many times click “next month” button using TIMES command
- send Uiv ${!cmd_var2} with “15” or a number like “15+x” calculated in VBA (day control starts from Monday)
- click the day control [15+x]
Can somebody help please?
Guido P
{
"Name": "Bale-UivForum",
"CreationDate": "2024-7-4",
"Commands": [
{
"Command": "open",
"Target": "https://www.balearia.com/es/balearia-booking/",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"header\"]/div/div/div/div/div",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "id=sel-route",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"travel-type-dropdown\"]/div/button/i",
"Value": "",
"Description": ""
},
{
"Command": "type",
"Target": "xpath=//*[@id=\"item-ida\"]/label/input",
"Value": "ida",
"Targets": [
"name=tripmode",
"xpath=//*[@id=\"item-ida\"]/label/input",
"xpath=//input[@name='tripmode' and @value='ida']",
"xpath=//li[2]/label/input",
"css=#item-ida > label > input"
],
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//input[@name='tripmode' and @value='ida']",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "",
"Value": "",
"Description": "step a) done"
},
{
"Command": "",
"Target": "",
"Value": "",
"Description": "step a done"
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"route_click\"]/div/input",
"Value": "",
"Targets": [
"name=print-Route",
"xpath=//*[@id=\"route_click\"]/div/input",
"xpath=//input[@name='print-Route']",
"xpath=//div[2]/div/div/div/div/div[2]/div/div/div/div/div/div/div/input",
"css=#route_click > div > input"
],
"Description": ""
},
{
"Command": "store",
"Target": "Barcelona - Mallorca",
"Value": "Tratta",
"Description": ""
},
{
"Command": "type",
"Target": "xpath=//*[@id=\"route_click\"]/div/input",
"Value": "${Tratta}",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"origen-items-lista\"]/div[2]/div/p",
"Value": "",
"Targets": [
"xpath=//*[@id=\"origen-items-lista\"]/div[2]/div/p",
"xpath=//div[2]/div[2]/div[2]/div/p",
"css=#origen-items-lista > div:nth-child(2) > div.info.start > p"
],
"Description": ""
},
{
"Command": "comment",
"Target": "click // xpath=//*[@id=\"calendar_dropdown\"]/div[2]/div/div/div/div[2]/div/div/div/div[2]/div/button[2]",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "click // xpath=//*[@id=\"calendar_dropdown\"]/div[2]/div/div/div/div[2]/div/div/div/div/div[3]/div[15]",
"Value": "",
"Description": ""
},
{
"Command": "storeText",
"Target": "xpath=//*[@id=\"calendar_dropdown\"]/div[2]/div/div/div/div[2]/div/div/div/div/div",
"Value": "MsCur",
"Description": ""
},
{
"Command": "echo",
"Target": "${MsCur}",
"Value": "",
"Description": ""
},
{
"Command": "storeValue",
"Target": "xpath=//*[@id=\"calendar_dropdown\"]/div[2]/div/div/div/div[2]/div/div/div/div/div/div",
"Value": "MsCur",
"Description": ""
},
{
"Command": "echo",
"Target": "${MsCur}",
"Value": "",
"Description": ""
}
]
}