Hi Raveendran,

I think there could be a hidden button existed on the page with same
properties of the button you are trying to click. Try to use index
property along with the current button value property.

Ex:
 ie.button(:id=>/action_button/,:index=>2).click
try to verify index value with 1,2,3.
I hope this will help you!

Regards
Siva Phaneendra Krapa



On Jul 18, 2:16 pm, Raveendran P <raveend...@railsfactory.org> wrote:
> Hi Venki,
>
> Any luck ?
>
> I am also facing the same issue. Please reply to me about this issue...
>
> Awaiting your reply..
>
>
>
>
>
> On Sat, May 30, 2009 at 1:02 PM, Venkat <venkateshla...@gmail.com> wrote:
>
> > I wrote a code to click on button
> > ie.button(:id, "action_button").click
>
> > But I am getting following errors:
> > C:\Documents and Settings\XXXX\Desktop>ruby two-minute.rb
> > C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
> > `assert_e
> > abled': object id and action_button is disabled
> > (Watir::Exception::ObjectDisabl
> > dException)
> >        from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > element.rb:22
> > :in `click!'
> >        from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> > element.rb:21
> > :in `click'
> >        from two-minute.rb:18
>
> > HTML Source code of the button
>
> > <div id="mid_row"></div>
> >        <div id="bot_row">
> >          <button type="button" class="button" id="action_button"></
> > button>
> >        </div>
>
> > My guess is my syntax is right but still its not clicking on button. I
> > am not sure why?
>
> --
> Regards,
> P.Raveendran- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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