I included this function in the class Element inside the module
FireWatir.

When I debugged my script I see that this function is never called.

Is there any other way around this?



On Jan 16, 4:46 pm, abhinay <abhinay.me...@gmail.com> wrote:
> Yes there is a bug in firewatir, add this to your code and see if it
> works:
>
> class FireWatir::Element
>   def window_var
>     "window"
>   end
> end
>
> I'm not sure if it's the same issue that I was having but give it a
> shot. I'm going to submit a patch for this problem anyway.
>
> On Jan 15, 9:05 pm, ad <codetest...@gmail.com> wrote:
>
> > Hi,
> > I am trying to fire an event in firewatir.
> > Basically,
> > there is a text field. Any key event in the text field, e.g. spacebar,
> > enables a button.
>
> > ff.text_field(:id,"ok").set "xyz" doesnt enable the button
> > neither does
> > ff.text_field(:id,"ok").fire_event("onkeypress")
>
> > I modified the element.rb file to send a spacebar keycode when
> > fire_event("onkeypress") is fired.
> > dom_event_init = "initKeyEvent(\"keypress\", true, true, #
> > {...@container.window_var}, false , false , false , false ,0, 32)"
>
> > it does send the spacebar to the text field but the button is not
> > enabled.
>
> > Is this a bug in firewatir?
>
> > -ad
-- 
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