[Wtr-general] need help with radio button

Cain, Mark Mark_Cain at rl.gov
Thu May 18 16:06:52 EDT 2006


There must be something else wrong because I put the following in a web
page:

 

      <input type="radio" name="selectionids"
value='8bf19f48-9462-4285-90ef-241f4fd5f7f7'>

      <input type="radio" name="selectionids"
value='8bf19f48-9462-4285-90ef-241f4fd5f7f8'>

      <input type="radio" name="selectionids"
value='8bf19f48-9462-4285-90ef-241f4fd5f7f9'>

 

And could click each using:

 

      $ie.radio(:name, "selectionids",
'8bf19f48-9462-4285-90ef-241f4fd5f7f7').set

      $ie.radio(:name, "selectionids",
'8bf19f48-9462-4285-90ef-241f4fd5f7f8').set

      $ie.radio(:name, "selectionids",
'8bf19f48-9462-4285-90ef-241f4fd5f7f9').set

 

They were all selected in turn without error.  

 

If you want more help you are going to have to give us enough of your
script and the html it is accessing to see what is going on.

 

--Mark

 

 

-----Original Message-----
From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Jassi Akkal
Sent: Thursday, May 18, 2006 12:39 PM
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] need help with radio button

 

I get following exception

"c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in

`assert_exists': Unable to locat

e object, using id and selectionids

(Watir::Exception::UnknownObjectException)

        from

c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3145:in `set'

        from C:/SmokeTest/login_test.rb:31

 

I also tried radio.focus but it did not worked.

 

Thanks

 

Jassi Akkal

 

> -----Original Message-----

> From: wtr-general-bounces at rubyforge.org

> [mailto:wtr-general-bounces at rubyforge.org] On Behalf

> Of Jassi Akkal

> Sent: Thursday, May 18, 2006 2:28 PM

> To: Wtr-general at rubyforge.org

> Subject: [Wtr-general] need help with radio button

> 

> Hi,

> 

> I am very new to the watir and i have been

> struggling with not being

> able to select the radio button. My HTML code is

> listed below

> 

> 

>                                                     

> 

> <input type="radio"

> name="selectionids

> value='8bf19f48-9462-4285-90ef-241f4fd5f7f7'

> 

> I used ie.radio(:name,

> 

"selectionids",'8bf19f48-9462-4285-90ef-241f4fd5f7f7').set,

> but it is not working for me.

> 

> I will appreciate any help.

> 

> Thanks

> 

> Jassi Akkal

>                             

> 

> jassi akkal

> jsakkal at yahoo.com

> 

> __________________________________________________

 

jassi akkal

jsakkal at yahoo.com

_______________________________________________

Wtr-general mailing list

Wtr-general at rubyforge.org

http://rubyforge.org/mailman/listinfo/wtr-general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060518/b6f1bc51/attachment.html 


More information about the Wtr-general mailing list