[wtr-general] Re: Problem with Checkbox

2009-10-22 Thread Amit Kulkarni
Any suggestions on the above issue?
Please help

On Wed, Oct 21, 2009 at 5:49 PM, Amit Kulkarni
amitkkulkarni...@gmail.comwrote:

 No,it does not flash up anything.
 It also does not display any error and goes to next step


 On Wed, Oct 21, 2009 at 5:39 PM, Željko Filipin 
 zeljko.fili...@wa-research.ch wrote:

 Does this flash what you want?

 Browser.span(:text, Ratingsanity1).flash

 Željko


 



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Wesley Chen
You can use $ie.checkbox(:id, /rating\[\d+\]/)

Thanks.
Wesley Chen.
For life, the easier, the better.


On Wed, Oct 21, 2009 at 7:02 PM, Amit Kulkarni
amitkkulkarni...@gmail.comwrote:

 Hello,
 I have this html script.
 td width=20%
 input id=rating[65] type=checkbox value=1 name=rating[65]/
 a title=Edit Rating href=/Nikes/ratings/65/edit
 span class=boldRatingsanity1/span
 /a
 /td


 The scenario is i want to click on the checkbox which has title
 Ratingsanity1.
 Now here i can tick the checkbox by using the name method but the no. isn't
 going to be same all the time.
 I tried following code but still no success.
 Please help.
 1: Browser.checkbox(:after?, Browser.cell(:text, Ratingsanity1)).click

 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Željko Filipin
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Amit Kulkarni
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Željko Filipin
Does this flash what you want?

Browser.span(:text, Ratingsanity1).flash

Željko

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Amit Kulkarni
No,it does not flash up anything.
It also does not display any error and goes to next step

On Wed, Oct 21, 2009 at 5:39 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 Does this flash what you want?

 Browser.span(:text, Ratingsanity1).flash

 Željko


 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---