Selected value in dropdown list revert back when running report

Hello I use select item to select period and year in those grey dropdowns. I set up a variable that feeds the month dropdowns (1,2,3,4,5,6,7,8,9,10,11,12), I was able to enter 8 for August from the list but when I run the bot, both months revert back to 7 (that’s the number in there before I ran the bot). Can someone please let me know why and how to fix this? thanks so much

Hi @lynnsong986
instead of select item try this way

  1. Use click activity to click the main list

  2. use another click activity to select any items in list [ make the selector of it as dynamic so that to select any items by providing the input]

and see whether it is working or not

Regards,
Nived N
Happy Automation

oh wow it works now!!! thank you so much @NIVED_NAMBIAR for your quick response, you are awesome!

1 Like

@NIVED_NAMBIAR would you be so kind help me out again editing the UI explorer.

this is the static code when I clicked on “8”

<wnd app='hubble.exe' cls='ComboLBox' idx='*' />
<ctrl name='T' role='list' />
<ctrl name='8' role='list item' />

the variable I set up for month is called “MonthNoStr”, I tried to substitute “8” with the variable name but it didn’t work…

thank you!

Hi @lynnsong986
did u check whether it is working with when u put 9 instead of 8

yes if I manually change

to

it still works thanks!!

<ctrl name='8' role='list item' />
to
<ctrl name='9' role='list item' />
still works

1 Like

Try to assign that 9 with variable
like this

<wnd app='hubble.exe' cls='ComboLBox' idx='*' />
<ctrl name='T' role='list' />
<ctrl name='{{MonthNoStr}}' role='list item' />

Also see whether there are any trailing spaces in the variable and remove it by Trim option

@lynnsong986
if the issue is resolved, kindly mark the correct answer as solution

Regards,
Nived N

it works like a charm! and I learnt the syntax :smiley: thank you so so much @NIVED_NAMBIAR !!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.