Hello everyone,
I have created a basic macro to select the vehicle category on a car rental website.
However, I am facing two issues:
-
When running the macro on my PC the OCR seems to identify the correct category, but the XClickText command clicks the row below.
-
When executing the macro on a Windows Server 2019 machine, I encounter an error (NetworkError: Failed to execute ‘importScripts’ on ‘WorkerGlobalScope’: The script at ‘chrome-extension://gcbalfbdmfieckjlnblleoemohcganoc/lib/tesseract/core/tesseract-core-lstm.wasm.js’ failed to load.)
Below the macro (some commands are disabled with comment).
{
"Name": "Upr99-ScSegmFORUM",
"CreationDate": "2025-4-30",
"Commands": [
{
"Command": "open",
"Target": "https://www.unipolrental.it/offerte/aziende-e-partite-iva",
"Value": "",
"Description": ""
},
{
"Command": "store",
"Target": "${!cmd_var1}",
"Value": "Segm",
"Description": ""
},
{
"Command": "store",
"Target": "${!cmd_var2}",
"Value": "Param",
"Description": ""
},
{
"Command": "store",
"Target": "Monovolume",
"Value": "Segm",
"Description": ""
},
{
"Command": "if",
"Target": "${Param}==\"CANC\"",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//div[13]/button[2]/span[2]",
"Value": "",
"Targets": [
"xpath=//*[@id=\"__next\"]/div/div/div[3]/div/div[13]/button[2]/span[2]",
"xpath=//div[13]/button[2]/span[2]",
"css=#__next > div > div > div.undefined > div:nth-child(1) > div.ProdottiListing_selectedFilters__5uAu3 > button.Button_button__rfKht.Button_button--ghost__liNbO.Button_button--md__hlsv8.undefined.Button_button--icon-left__7jHyC > span.Button_label__aY_y3"
],
"Description": ""
},
{
"Command": "end",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "",
"Target": "",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//div[12]/div/button",
"Value": "",
"Description": ""
},
{
"Command": "visionLimitSearchArea",
"Target": "area=150,150,700,700",
"Value": "",
"Description": ""
},
{
"Command": "XClickText",
"Target": "${Segm}",
"Value": "",
"Description": ""
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"__next\"]/div/div/div[3]/div/div[12]/div/button/span",
"Value": "",
"Description": ""
}
]
}
Thanks for your help