Please show us the code that you tried.
On Monday, June 17, 2013 11:26:19 AM UTC-4, fabian@gmail.com wrote:
Guys,
I have this html :
input type=radio name=Server value=1
onclick=displayHiddenText();setPageChanged(true); id=Server_0
label for=Server_0Yes/label
which would be the
radio = browser.label(:for = 'Server_0').parent.radio.set
radio = browser.label(:name = 'Server').parent.radio.set
radio = browser.label(:text= 'Server').parent.radio :value 'Yes'
etc
El lunes, 17 de junio de 2013 12:32:54 UTC-3, Dan escribió:
Please show us the code that you tried.
On
I think you might be overcomplicating things, but if you want to work back
up from the label you can do this:
b.label(:text = 'Yes').parent.radio.set
Otherwise you can just do this:
b.radio(:id = Server_0).set
or
b.radio(:name = Server).set
On Monday, June 17, 2013 11:39:31 AM UTC-4,
I thought b.radio was with watir, not watir-webdriver ...
I'm just following the examples n the webpage
On Mon, Jun 17, 2013 at 12:54 PM, Dan dfra...@gmail.com wrote:
I think you might be overcomplicating things, but if you want to work back
up from the label you can do this:
b.label(:text
If you want to follow the example on the page more closely it would be like
this for your html:
radio = b.label(:text= 'Yes').parent.radio :value = '1'
= #Watir::Radio:0x10ece2890 located=false selector={:type=radio,
:value=1, :tag_name=input}
radio.set
= nil
On Monday, June 17, 2013
Dan,
b.radio(:id = Server_0).set
Worked like magic!
Thanks a million,
fabian
El lunes, 17 de junio de 2013 13:13:12 UTC-3, Dan escribió:
If you want to follow the example on the page more closely it would be
like this for your html:
radio = b.label(:text= 'Yes').parent.radio :value =