Forum Discussion
Sorry I know its been a long time since you wrote this...the script runs through but it still won't click the listitems. Any other suggestions?
Thanks for the reply!
Does it throw any error message?
I can see the methods available for dropdown item in your previous screenshots. Can you share the properties and methods shown for the ListItem?
Also I noticed there is a 'Value' property at your dropdown. If your tests does not care about the way how the dropdown value is set.
You can try something like this...
ddlVehicle.Value = menuItem;
I would suggest this only if you could not find any other option to set the value and if your test does not care the way the value is set.
- russelld6 years agoContributor
See the following attachments...Thanks
- SaravanaKumar_N6 years agoContributor
Slightly confused now. Are you facing the issue while clicking the list item from the dropdown or while clicking the dropdown itself?
Error - "There was an attempt..." looks to be for Dropdown click action. If so please check whether all okay with your mapping for the dropdown.
Also, in your function you are checking for listObject.Exists, so you would not get 'Object does not exist' error message for the list item. I expect you should just get that Log.Message - drop down not clicked.
- russelld6 years agoContributor
The dropdown gets clicked but it can't find the 'listitem' because of the scrollbar.
Related Content
- 11 months agolokwk216
- 11 years agoRavik
- 6 years agofunmay
- 11 years agositasrikanth
Recent Discussions
- 24 hours agojstaehlin