I am trying to automate a survey and so far so good until I came to radio buttons which I assumed would be easy but I can't get them right.
The HTML code is this:
<span class="radioButtonHolder">
<span class="radioBranded" style="background-position: 0px -1px;"></span>
<input id="A.1" class="customCtrlLarge" type="radio" value="1" name="A"></input>
With Watir-Webdriver I tried:
browser.radio(:name => 'A', :value => '1').click
This hasn't worked. I have also tried:
browser.radio(:id => 'A.1').click
browser.find_element(:name => 'A', :value => '1').click