Question

12
Replies
84
Views
Close popover
Zach Taylor (ZachT124)
Transplace
Data Scientist
Transplace
US
ZachT124 Member since 2021 16 posts
Transplace
Posted: March 18, 2021
Last activity: March 31, 2021
Solved

Select checkbox from drop down list on a web page based on a parameter

I am trying to select a check box from a drop-down list on a web page. I am able to select the button to open the list but I can not seem to select the checkbox in the drop-down list. Sometimes there will be more than one option in the list, so I will not always be selecting the first item in the list. I need to select the option from the drop-down list that matches my parameter for this report. Any suggestions on how I can  1. select the check box and 2. loop through the drop-down options and match based on a parameter for this report? Would I need to use a list loop to loop through the drop-down list and then compare each item to my parameter and then select the check box if there was a match? I have tried to use ExecuteScript based on the onclick value for the check box and that did not work. I also tried to inspect the drop-down list using the select element and then perform the click and that did not work either. 

***Edited by Moderator: Pooja Gadige to add platform capability tag***
Pega Robotic Process Automation Robotic Process Automation User Experience Financial Services Data Scientist