[wtr-general] Re: fire_event not fired in firewatir
do we have any update on this one? any one got it working? On Jan 19, 10:49 am, ad wrote: > I also have 1.6.5 on my machine. > > On Jan 19, 7:20 am, al3kc wrote: > > > I use firewatir 1.6.5 butfire_eventdoesn't work properly for me > > too. > > > I use the following cheat: > > > module FireWatir > > module Container > > WINDOW_VAR = "window" > > BROWSER_VAR = "browser" > > DOCUMENT_VAR = "document" > > BODY_VAR = "body" > > end > > end > > > and replace window_var and document_vat by WINDOW_VAR and > > DOCUMENT_VAR infire_eventmethod. -- 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: fire_event not fired in firewatir
I also have 1.6.5 on my machine. On Jan 19, 7:20 am, al3kc wrote: > I use firewatir 1.6.5 but fire_event doesn't work properly for me > too. > > I use the following cheat: > > module FireWatir > module Container > WINDOW_VAR = "window" > BROWSER_VAR = "browser" > DOCUMENT_VAR = "document" > BODY_VAR = "body" > end > end > > and replace window_var and document_vat by WINDOW_VAR and > DOCUMENT_VAR in fire_event method. -- 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: fire_event not fired in firewatir
I use firewatir 1.6.5 but fire_event doesn't work properly for me too. I use the following cheat: module FireWatir module Container WINDOW_VAR = "window" BROWSER_VAR = "browser" DOCUMENT_VAR = "document" BODY_VAR = "body" end end and replace window_var and document_vat by WINDOW_VAR and DOCUMENT_VAR in fire_event method. -- 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
Re: [wtr-general] Re: fire_event not fired in firewatir
There is unittest which does the same & it works. Which FireWatir version are you using? On Mon, Jan 18, 2010 at 7:14 PM, ad wrote: > 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 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 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 > -- 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: fire_event not fired in firewatir
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 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 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
[wtr-general] Re: fire_event not fired in firewatir
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 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