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
Solved! Go to Solution.
@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".
On some research what worked for me is:
- Focus text field on web page - give the UI element here
- Send keys - Audi "80"
If you don't want to use Sendkeys then you will have to inject the javascript into the webpage that will select the dropdown.
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")?
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".
On some research what worked for me is:
- Focus text field on web page - give the UI element here
- Send keys - Audi "80"
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.
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)
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.