I tried using command $Browser.checkbox(:id, /rating\[\d+\]/).set but i got
error which is as follows:
You have  nil object when you didn't expect it!
      The error occurred while evaluating nil.checkbox (NoMethodError)
      ./step_definitions/update_feature_steps.rb:23:in `/^i click on the
created rating$/'

I tried with the below codes
1:Browser.cell(:text, "Ratingsanity1").flash
Nothing is getting flashed no error is displayed and next step is executed.

2:Browser.checkbox(:after?, Browser.span(:text, "Ratingsanity1")).click
Here no check box is getting clicked but next step is executed.
I also tried using .set method but no success.

I am not getting what is wrong.Please suggest.


On Wed, Oct 21, 2009 at 4:36 PM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> On Wed, Oct 21, 2009 at 1:02 PM, Amit Kulkarni <amitkkulkarni...@gmail.com>
> wrote:
> > I tried following code but still no success.
> > 1: Browser.checkbox(:after?, Browser.cell(:text, "Ratingsanity1")).click
>
> And what is the error message, if any?
>
> Does this flash what you want?
>
> Browser.cell(:text, "Ratingsanity1").flash
>
> Does this work?
>
> Browser.checkbox(:after?, Browser.span(:text, "Ratingsanity1")).click
>
> Željko
> --
> http://watirpodcast.com/
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to