cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
airsay
Frequent Visitor

Selecting items in web page drop down list

Hi,

 

Does anyone know why I would be running into issues in PAD when selecting items that have a " (double quote symbol) in a web page drop down list? I have a Text List that holds all the possible entries available in a drop down list. When I try to get PAD to select an item that has a ", PAD errors out with a message that says the item is not available in the drop down list (even though the item is actually there). I only experience this issue for items that have a ". Thanks in advance for any proposed solution

1 ACCEPTED SOLUTION

Accepted Solutions

@airsay , you're right, the set drop down worked when there were enclosing quotes like "Audi" but does not work when it is somewhere in the middle of the text Audi "80".

VJR_0-1668827784940.png

On some research what worked for me is:

- Focus text field on web page - give the UI element here

- Send keys - Audi "80"

 

VJR_1-1668828012394.png

 

If you don't want to use Sendkeys then you will have to inject the javascript into the webpage that will select the dropdown.

 

 

View solution in original post

6 REPLIES 6
VJR
Super User
Super User

Hi @airsay 

 

I was able to select a dropdown value with a quote in it.

- Which action are you using to select it?

- Select options by name or by index - did you try both the options?

- Can you right click Inspect the element and are you able to see what the actual value of the dropdown is?

- Is it a plain simple html select tag?

Eg; <option value="AudiCar">"Audi"</option>

If so are you selecting the text that is in the value attribute (AudiCar) or the one between the option tag ("Audi")?

 

 

 

 

airsay
Frequent Visitor

Hello @VJR 

Thank you for the response. I will respond to each point below

 

- Which action are you using to select it?

I am using the action Set-drop-down list value on web page 

 

- Select options by name or by index - did you try both the options?

I am using Select Options by name as my list contains the exact name of the options available.

 

 

- Can you right click Inspect the element and are you able to see what the actual value of the dropdown is? Is it a plain simple html select tag? eg; <option value="AudiCar">"Audi"</option>

Yes is is a simple html select tag of the form <option value="1234">Audi "80"</option>

I am trying to select Audi "80"

 

Thanks

@airsay , you're right, the set drop down worked when there were enclosing quotes like "Audi" but does not work when it is somewhere in the middle of the text Audi "80".

VJR_0-1668827784940.png

On some research what worked for me is:

- Focus text field on web page - give the UI element here

- Send keys - Audi "80"

 

VJR_1-1668828012394.png

 

If you don't want to use Sendkeys then you will have to inject the javascript into the webpage that will select the dropdown.

 

 

This is not practically possible in case of the large list and if we have to set the values from excel or other data source.

momlo
Impactful Individual
Impactful Individual

Hi Guys,

What is the site you are automating here? @VJR @airsay 

I would give it a shot with the approach I used in one of the cases I had in the past.

 

1. Capture any list item 

2. Edit it's selector to make it dynamic -> use Value contains %ListItem%

3. In flow use actions to expand the list

4. Then instead of using select drop-down list value use click ui element and point to the element from point 2 (if the value is visible, should work I guess)

 

Hi @Paudelanil-NP 

Generally dropdowns do not have too much of a long list, but even if so, then there are some workarounds for that.

Could you please share details pertaining to your situation in a new thread since this is closed. Thanks.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,938)