I have a form with three radio buttons.
<form name="contact">
<label>Type</label>
<label>
<input type="radio" id="car" value="car" checked>Car
</label>
<label>
<input type="radio" id="boat" value="boat">Boat
</label>
<label>
<input type="radio" id="home" value="home">Home
</label>
</form>
I'm writing integrated tests in Protractor.
I'm having problems selecting a radio button value. I've tried clicking by ID:
//click boat
element(by.id('boat')).click();
When I run my test, I get the following error:
Message:
Failed: No element found using locator: By(css selector, *[id="boat"])
Stack:
NoSuchElementError: No element found using locator: By(css selector, *[id="boat"])
