Gabriel Morin
Gabriel Morin

Reputation: 1

Drop-Down List in Automation Anywhere

I need help with Automation Anywhere

< option selected="selected" value="">< /option >

< option value="0001">EUA OPT (0001)< /option >

< option value="0002">BRA OPT (0002)< /option >

< option value="0003">GER OPT (0003)< /option >

Thank you.

Upvotes: 0

Views: 4663

Answers (3)

Amar Kumar
Amar Kumar

Reputation: 1

Will select the value from Select item by text after performing the manage web record command. Select item by text will give the exact value of the drop down which is present in the application. Another option is get the value which we want to select in drop down from any config file into a variable and then pass the same variable in **select item by text option.**

Upvotes: 0

codenameGamer
codenameGamer

Reputation: 33

You won't need to do so much to get what you need here. Automation Anywhere "Select Item by Text" works wonderfully with asterisk symbol ( * ).

If you want your robot to always select the second option regardless of its text value: Use "Select Item By Text" and put *0002* as value (including asterisks on both sides). Or you could use *0002) to have hard match on value ending with 0002).

Upvotes: 0

Piotr
Piotr

Reputation: 161

First idea that comes to my head is to "click" drop-down list with Object cloning, after that take the whole text from that list with Object cloning into variable_1. Search inside variable_1 for value that you are interested in, in this case "0002" and make some kind a regular expression to pick value of list element that you want. String operation before-after variable_1 before ")" after "(0002)" so will return you half of value of element you are looking for assign it to variable_2.

enter image description here

Result will be:

enter image description here

Last step is to concatenate variable_2 with "0002" and pass it to "Web Recorder.

Upvotes: 1

Related Questions