I had a similar problem, and I could not get her to choose the right option. I came across this question and it made me realize that the problem is that you have to send the text, not the value, to select ().
For example, if I have HTML, for example
<select id="things"> <option value="thing1">The First Thing</option> <option value="thing2">The Second Thing</option> <option value="thing3">The Third Thing</option> </select>
And in my SitePrism :: Page class, I have:
element :things, "select[id='things']"
I thought I needed to do:
@my_page.things.select("thing1")
This does not work. Instead, you need to do:
@my_page.things.select("The First Thing")
I know this is a little different than what you are trying to select based on the value you get from SitePrism as originally set. But I thought that this difference about what to pass to select () might help someone.
Gayle source share