Selection issue with Combobox

Hello,
I am currently experiencing an issue with a login script for a site that uses three fields.
First, you enter the username and password; then, the system asks for a store number starting with four digits (e.g., 0608).
In my script, I used the down arrow to select the correct store (0608 Albi Lescure), but unfortunately, Ui.Vision does not always register the selection correctly. As a result, when I click “Login,” the system returns an error.
Is there a more reliable method to select the correct store and ensure it is properly registered before clicking “Login”? Here is the code:

{
“Name”: “Macro5_Mutuelle_Connexion”,
“CreationDate”: “2025-12-29”,
“Commands”: [
{
“Command”: “store”,
“Target”: “20”,
“Value”: “!TIMEOUT_WAIT”,
“Description”: “Timeout global d’attente des éléments (20s)”
},
{
“Command”: “store”,
“Target”: “MEDIUM”,
“Value”: “!replayspeed”,
“Description”: “Vitesse moyenne pour stabiliser l’exécution”
},
{
“Command”: “selectWindow”,
“Target”: “tab=open”,
“Value”: “https://seeneo.grandvisionfrance.fr/TTT/Account/Login”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=AccessCode”,
“Value”: “”,
“Targets”: [
“id=AccessCode”,
“name=AccessCode”,
“xpath=//[@id=“AccessCode”]",
“xpath=//input[@id=‘AccessCode’]”,
“xpath=//div[2]/div/input”,
“css=#AccessCode”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=AccessCode”,
“Value”: “lulu”,
“Targets”: [
“id=AccessCode”,
“name=AccessCode”,
"xpath=//
[@id=“AccessCode”]”,
“xpath=//input[@id=‘AccessCode’]”,
“xpath=//div[2]/div/input”,
“css=#AccessCode”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=ClonePd”,
“Value”: “pwdlulu”,
“Targets”: [
“id=ClonePd”,
“name=ClonePd”,
“xpath=//[@id=“ClonePd”]",
“xpath=//input[@id=‘ClonePd’]”,
“xpath=//div[2]/input”,
“css=#ClonePd”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=SIIButtonConnect”,
“Value”: “”,
“Targets”: [
“id=SIIButtonConnect”,
"xpath=//
[@id=“SIIButtonConnect”]”,
“xpath=//button[@id=‘SIIButtonConnect’]”,
“xpath=//button”,
“css=#SIIButtonConnect”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=SiteCode_SIIAutocompleteCombobox”,
“Value”: “0503”,
“Targets”: [
“id=SiteCode_SIIAutocompleteCombobox”,
“name=SiteCode_SIIAutocompleteCombobox”,
“xpath=//[@id=“SiteCode_SIIAutocompleteCombobox”]",
“xpath=//input[@id=‘SiteCode_SIIAutocompleteCombobox’]”,
“xpath=//input”,
“css=#SiteCode_SIIAutocompleteCombobox”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=ui-id-3”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=SIIButtonConnect”,
“Value”: “”,
“Targets”: [
“id=SIIButtonConnect”,
"xpath=//
[@id=“SIIButtonConnect”]”,
“xpath=//button[@id=‘SIIButtonConnect’]”,
“xpath=//button”,
“css=#SIIButtonConnect”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“btn_collapseSidebar”]/i",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“btn_collapseSidebar”]/i”,
“xpath=//div[2]/a/i”,
“css=#btn_collapseSidebar > i”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“SidebarBody”]/a/span",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“SidebarBody”]/a/span”,
“xpath=//div[3]/a/span”,
“css=#SidebarBody > a:nth-child(1) > span”
],
“Description”: “”
}
]
}

Best regards

Hervé

Hi, do you have a link to the website for testing?

Unfortunately not; the application is accessible only via a VPN.

The strange thing about this issue is that it works on some PCs but not others—especially on fast, modern ones. Do you have any ideas on how to fix this?

test with xclick command

1 Like

I would not go with X click. That can bring some other issues along. What do you need to do is:

  1. Enter the four digit into the text box
  2. There is a command in Kantu, that waits till a certain tag appears visibly on the website. Look out for that tag with the text inside and use it as a trigger for the command that waits for that certain tag to show up visibly
  3. That holds on the script for any further execution till the tag has been populated and shows up
  4. Then press the enter button or whatever it is to continue with the login

without access to website its difficult to troubleshoot