I’m unable to select a certain text from a drop down list.
The data that will be selected from the drop down list is dynamic and will change depending on what type of item it’s working with. So for example… If these are my items…
If I choose apple, my selections are going to be:
But If I choose Strawberry I might get:
This is just an example. In reality, My sublist has 20 items or so.
I’ve created a variable called selectText that will hold the text that I would like to select from the dropdown list.
Here is the tricky part…
It’s not a Select Web attribute, it’s a div. So I can’t use the Select Activity because it’s not supported by the current node…Or whatever…
This is the selector for the div, where I believe each text field is a SPAN
"<webctrl id='rc' parentid='"+parentidRow+"' tag='DIV'/>"
I’ve tried a type into activity, but that only works if I only type in one letter, it will select whatever the first thing is that starts with that letter. That’s not going to work because I have multiple items in my list starting with the same letter. It won’t always select the correct item.
I also tried clicking on the dropdown, and then using a click text activity right afterwards. Any other ideas would be greatly appreciated.