Hi, I am having trouble selecting this with watir. I'm trying xpath and is able to try something like this
browser.element_by_xpath("select/option[2]").text
and it will return the text. but how would i select the text in the dropdown. Thanks
<select>
<option value="">--Select One--</option>
<option value="test">NAME1</option>
<option value="test2">NAME2</option>
</select>