I need to get the “value” from each option within a select list on a web page. I intend to iterate over each value, and perform an action. Currently, I have a “Find Children” activity for the selector, and a loop to get the “value” but I cannot get it to work. I can see the “aaname” attribute, and using UI Explorer, I can see there is a “value” attribute, but cannot seem to select it.
Example HTML:
<select id="accountNumberSelect" name="accountNumber">
<option value="">All Accounts</option>
<option value="123">123 - Account Name 1</option>
<option value="456">456 - Account Name 2</option>
<option value="789">789 - Account Name 3</option>
</select>
After Finding the children you will have to apply for each loop on each element and in that loop try to use GetAttribute activity and supply Attribute Name as “aaname”
HI @PrankurJoshi, for the same requirement, I want to extract the dropdown data and need in the format of datatable, this is the website, https://www.x-rates.com/
And I tried but for testing purpose put it in the following excel sheet, am not able put in the correct format.
I have followed the file attached and I could extract the list items as well.Thanks! But I am having difficulty in clicking on the item during iteraion.
I want to click on the value in the dropdown list. Can you please help. I have tried to work with get text and get element only to conclude that result is not achieved.
Hi,
I want to get all the dropdown values in excel in particular cell and then want to select each drop down value one by one. And after selecting it I also want to verify selected values and mention as Pass or fail in excel.
For that do we need to add one more Foreach loop or how I will achieve it?
Hi,
I want to get all the dropdown values in excel in particular cell and then want to select each drop down value one by one. And after selecting it I also want to verify selected values and mention as Pass or fail in excel.
For that do we need to add one more Foreach loop or how I will achieve it?
I was looking to do something similar as you. I did it with Joshi’s (#3) workflow but changed the Get attribute activity with Get Text. That should output “123 - Account Name 1”, “456 - Account Name 2”, etc.