Page 1 of 1

select from a dropdown list

Posted: Wed Jul 29, 2020 2:43 pm
by cs97jjm3
hello, simple question but the dropdown is dynamic..
the drop down list only shows when selected the open (arrow) button
select database.rxsnp

Re: select from a dropdown list

Posted: Wed Jul 29, 2020 9:04 pm
by Support Team
Can you clarify more on exactly what you are trying to achieve with this select box? To expand the select box, perform a click action on the below element.

Code: Select all

/form[@controlname='WROptionManager']//combobox[@controlname='dbname']
Which one do you want to be selected by Ranorex? For example, if you want it to always select the third one down, you can perform a click via the item's index (1 is first item).

Code: Select all

./item[][3]
If the item you want to select is variable based on some other information from the application, you can use a variable in the RxPath.

Code: Select all

./item[@text=$varOption]
The more information you can provide regarding this, the better I will be able to advise you on how to achieve this. Nonetheless, I hope it helps!

Cheers,
Ned

Re: select from a dropdown list

Posted: Thu Jul 30, 2020 8:59 am
by cs97jjm3
Wow thanks for this..

1. To expand the select box, perform a click action on the below element for csv file

i have struggle with this and it is driving me made , so once again thanks for your assitance