From michael_hwee at yahoo.com Tue Jun 2 19:03:28 2009 From: michael_hwee at yahoo.com (Michael Hwee) Date: Tue, 2 Jun 2009 16:03:28 -0700 (PDT) Subject: [Wtr-development] Weirdness with click in FireWatir. In-Reply-To: References: Message-ID: <71736.70309.qm@web31812.mail.mud.yahoo.com> I think the object locate() wasn't called correctly. I noticed first element is usually not located until at method called. If you try using additional element before the link, it might work fine. For example, assuming the link is inside the DIV object. alan.div(:index,1).link(:text,"Orlando").click?? ________________________________ From: Paul Rogers To: Watir development Sent: Tuesday, June 2, 2009 3:43:54 PM Subject: Re: [Wtr-development] Weirdness with click in FireWatir. Alan, the code below is from a very old version of firewatir. But I also had problems with the click event, but its so long ago I cant remember what exactly. ??? #?? method to fire click event on elements.? ??? def click ??? ??? ? #assert_exists ??? ??? ? assert_enabled ??? ??? ? highlight(:set) ??? ??? ? #log "#{element_object} and #{element_type}" ??? ??? ? #case element_type ??? ??? ??? ? ??? ??? ??? #? when "HTMLAnchorElement", "HTMLImageElement" ??? ??? ??? ??? ? # Special check for link or anchor tag. Because click() doesn't work on links. ??? ??? ??? ??? ? # More info: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443 ??? ??? ??? ??? ? # https://bugzilla.mozilla.org/show_bug.cgi?id=148585 ??? ??? ??? ??? ? jssh_command = "var event = #{DOCUMENT_VAR}.createEvent(\"MouseEvents\");" ??? ??? ??? ??? ? x=self.left_edge ??? ??? ??? ??? ? y=self.top_edge ??? ??? ??? ??? ? # Info about initMouseEvent at: http://www.xulplanet.com/references/objref/MouseEvent.html??????? ??? ??? ??? ??? ? jssh_command += "event.initMouseEvent('click',true,true,null,1,0,0,#{x},#{y},false,false,false,false,0,null);" ??? ??? ??? ??? ? jssh_command += "#{element_object}.dispatchEvent(event);\n" ??? ??? ??? ??? ? ??? ??? ??? ??? ? #log "jssh_command is: #{jssh_command}" ??? ??? ??? ??? ? jssh_socket.send("#{jssh_command}", 0) ??? ??? ??? ??? ? read_socket() ??? ??? ??? ?# else ??? ??? ??? ?#???? @jssh_socket.send("typeof(#{element_object}.click);\n", 0) ??? ??? ??? ?#???? isDefined = read_socket() ??? ??? ??? ?#???? if(isDefined == "undefined") ??? ??? ??? ?#???????? fire_event("onclick") ??? ??? ??? ?#???? else ??? ??? ??? ?#???????? @jssh_socket.send("#{element_object}.click();\n" , 0) ??? ??? ??? ?#???????? read_socket() ??? ??? ??? ?#???? end??? ??? ??? ? #end ??? ??? ? highlight(:clear) ??? ??? ? # Wait for firefox to reload. ??? ??? ? wait() ??? ? end??? Paul On Tue, Jun 2, 2009 at 3:39 PM, Alan Ark wrote: Hi there. >? >I?m using >WinXp, FF 3.0.10, Ruby 1.8.6, and Watir from trunk a few weeks ago. >? >I?m seeing a strange situation where sometimes ?click? does not appear to do anything from Firewatir.? >Under IE, the code would behave rather well and move you to the expected page. >? >I?ve repro?d the problem on a public web site.? You should be able to cut and paste the following code right into a command window. >? >set watir_browser=firefox >irb >require 'Watir' >bb=Watir::Browser.new() >bb.goto("http://www.cbssports.com/nba") >alan=bb.div(:class,"gameContainer") >alan.links.each { |qq| puts qq.text } >alan.link(:text,"Orlando").click? # for some reason it does not actually move the browser onto the next page >sleep 30 # Just slow things down so we can see that the browser does not go anywhere >bb.link(:text,"Orlando").click >? >? >One thing I tried was to modify firewatir/MozillaBaseElements.rb to uncomment the lines showing >-????????? #{element_object} >-????????? #{element_type} >-????????? #{jssh_command} >? >But those lines are not showing up in IRB like I would have expected them to, so I modified firewatir/elements.rb too. >? >Got something interesting from irb >? >irb(main):006:0> alan.link(:text,"Orlando").click >elements_0_A[0]and HTMLAnchorElement >jssh_command is: var event = .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal >se,false,false,0,null);elements_0_A[0].dispatchEvent(event); >? >irb(main):009:0> bb.link(:text,"Orlando").click >elements_A[356] and HTMLAnchorElement >jssh_command is: var event = document.createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f >alse,false,false,false,0,null);elements_A[356].dispatchEvent(event); >=> 0 >? >I?m guessing that @container.document_var is not being set correctly on the assignment to ?alan?, but I?m not entirely sure on how to proceed. >? >Looking for comments.? Thanks for listening. >-Alan >? > ________________________________ >Alan Ark?|?QA Manager|?Compl??|?arkie at compli.com |?office:?503.294.2020 x106?|?fax:?503.294.1200?|?www.compli.com >? >_______________________________________________ >Wtr-development mailing list >Wtr-development at rubyforge.org >http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aidy.lewis at googlemail.com Wed Jun 24 13:01:12 2009 From: aidy.lewis at googlemail.com (aidy lewis) Date: Wed, 24 Jun 2009 18:01:12 +0100 Subject: [Wtr-development] #fire_event include event parameter Message-ID: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Has anyone worked on trying to include event parameters in #fire_event in ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb I am trying to select of date here: 17 Aidy From marekj.com at gmail.com Wed Jun 24 22:47:19 2009 From: marekj.com at gmail.com (marekj) Date: Wed, 24 Jun 2009 21:47:19 -0500 Subject: [Wtr-development] #fire_event include event parameter In-Reply-To: References: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Message-ID: bug! bug! from here too Paul Just throw it up on github which reminds me. I have been stingy and not sharing some of my codesz even if half-ass codes. We should start a half ass code sharing program marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Wed, Jun 24, 2009 at 1:33 PM, Charley Baker wrote: > bug! bug! :) It would be really useful stuff to have. I guess I've always > gotten around it in different ways, and it's yet another reminder that I > should spend more time learning javascript properly. > > -c > > > On Wed, Jun 24, 2009 at 12:09 PM, Paul Rogers wrote: > >> I have code that does proper events in both ie and ff. Its not complete, >> but mostly working. Keep bugging me until I post it. >> >> Paul >> >> On Wed, Jun 24, 2009 at 11:01 AM, aidy lewis wrote: >> >>> Has anyone worked on trying to include event parameters in #fire_event >>> in >>> ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb >>> >>> I am trying to select of date here: >>> >>> >> >>> onclick="CalendarPopup_FindCalendar('ctl00_ctl00_ctl00_mainContentPlaceHolder_mainContentPlaceHolder_mainContentPlaceHolder_filterForm_modifiedDateFrom_calendarPopUp').SelectDate('6/17/2009')" >>> style="color: Black; background-color: White; font-family: >>> Verdana,Helvetica,Tahoma,Arial; font-size: xx-small; cursor: >>> pointer;">17 >>> >>> Aidy >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-development at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marekj.com at gmail.com Thu Jun 25 00:11:13 2009 From: marekj.com at gmail.com (marekj) Date: Wed, 24 Jun 2009 23:11:13 -0500 Subject: [Wtr-development] #fire_event include event parameter In-Reply-To: References: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Message-ID: Ok, good step thanks, now git push origin should do it. marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Wed, Jun 24, 2009 at 10:38 PM, Paul Rogers wrote: > so I know where the additions to watir/firewatir are. I know where the test > html was, but I really cant find the unit tests I started on. I'll take a > look tomorrow at work, as it might be in the svn there. > > Keep bugging me ;-) > The git repo is here,? http://github.com/paulrogers/watirEvents/tree/master > I'll add stuff as I get the chance > > Paul > > On Wed, Jun 24, 2009 at 8:47 PM, marekj wrote: >> >> bug! bug! from here too Paul >> Just throw it up on github >> which reminds me. I have been stingy and not sharing some of my codesz >> even if half-ass codes. >> We should start a half ass code sharing program >> >> marekj >> >> Watirloo: Semantic Page Objects in UseCases >> http://github.com/marekj/watirloo/ >> >> >> >> On Wed, Jun 24, 2009 at 1:33 PM, Charley Baker >> wrote: >>> >>> bug! bug! :) It would be really useful stuff to have. I guess I've always >>> gotten around it in different ways, and it's yet another reminder that I >>> should spend more time learning javascript properly. >>> >>> -c >>> >>> On Wed, Jun 24, 2009 at 12:09 PM, Paul Rogers >>> wrote: >>>> >>>> I have code that does proper events in both ie and ff. Its not complete, >>>> but mostly working. Keep bugging me until I post it. >>>> >>>> Paul >>>> >>>> On Wed, Jun 24, 2009 at 11:01 AM, aidy lewis >>>> wrote: >>>>> >>>>> Has anyone worked on trying to include event parameters in #fire_event >>>>> in >>>>> ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb >>>>> >>>>> I am trying to select of date here: >>>>> >>>>> >>>> >>>>> onclick="CalendarPopup_FindCalendar('ctl00_ctl00_ctl00_mainContentPlaceHolder_mainContentPlaceHolder_mainContentPlaceHolder_filterForm_modifiedDateFrom_calendarPopUp').SelectDate('6/17/2009')" >>>>> style="color: Black; background-color: White; font-family: >>>>> Verdana,Helvetica,Tahoma,Arial; font-size: xx-small; cursor: >>>>> pointer;">17 >>>>> >>>>> Aidy >>>>> _______________________________________________ >>>>> Wtr-development mailing list >>>>> Wtr-development at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/wtr-development >>>> >>>> >>>> _______________________________________________ >>>> Wtr-development mailing list >>>> Wtr-development at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >>> >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-development at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > From arkie at compli.com Tue Jun 2 17:39:00 2009 From: arkie at compli.com (Alan Ark) Date: Tue, 2 Jun 2009 14:39:00 -0700 Subject: [Wtr-development] Weirdness with click in FireWatir. Message-ID: Hi there. I'm using WinXp, FF 3.0.10, Ruby 1.8.6, and Watir from trunk a few weeks ago. I'm seeing a strange situation where sometimes "click" does not appear to do anything from Firewatir. Under IE, the code would behave rather well and move you to the expected page. I've repro'd the problem on a public web site. You should be able to cut and paste the following code right into a command window. set watir_browser=firefox irb require 'Watir' bb=Watir::Browser.new() bb.goto("http://www.cbssports.com/nba") alan=bb.div(:class,"gameContainer") alan.links.each { |qq| puts qq.text } alan.link(:text,"Orlando").click # for some reason it does not actually move the browser onto the next page sleep 30 # Just slow things down so we can see that the browser does not go anywhere bb.link(:text,"Orlando").click One thing I tried was to modify firewatir/MozillaBaseElements.rb to uncomment the lines showing - #{element_object} - #{element_type} - #{jssh_command} But those lines are not showing up in IRB like I would have expected them to, so I modified firewatir/elements.rb too. Got something interesting from irb irb(main):006:0> alan.link(:text,"Orlando").click elements_0_A[0] and HTMLAnchorElement jssh_command is: var event = .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal se,false,false,0,null);elements_0_A[0].dispatchEvent(event); irb(main):009:0> bb.link(:text,"Orlando").click elements_A[356] and HTMLAnchorElement jssh_command is: var event = document.createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f alse,false,false,false,0,null);elements_A[356].dispatchEvent(event); => 0 I'm guessing that @container.document_var is not being set correctly on the assignment to "alan", but I'm not entirely sure on how to proceed. Looking for comments. Thanks for listening. -Alan ________________________________ Alan Ark | QA Manager| Compl? | arkie at compli.com | office: 503.294.2020 x106 | fax: 503.294.1200 | www.compli.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.rogers at shaw.ca Tue Jun 2 18:43:54 2009 From: paul.rogers at shaw.ca (Paul Rogers) Date: Tue, 2 Jun 2009 16:43:54 -0600 Subject: [Wtr-development] Weirdness with click in FireWatir. In-Reply-To: References: Message-ID: Alan, the code below is from a very old version of firewatir. But I also had problems with the click event, but its so long ago I cant remember what exactly. # method to fire click event on elements. def click #assert_exists assert_enabled highlight(:set) #log "#{element_object} and #{element_type}" #case element_type # when "HTMLAnchorElement", "HTMLImageElement" # Special check for link or anchor tag. Because click() doesn't work on links. # More info: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443 # https://bugzilla.mozilla.org/show_bug.cgi?id=148585 jssh_command = "var event = #{DOCUMENT_VAR}.createEvent(\"MouseEvents\");" x=self.left_edge y=self.top_edge # Info about initMouseEvent at: http://www.xulplanet.com/references/objref/MouseEvent.html jssh_command += "event.initMouseEvent('click',true,true,null,1,0,0,#{x},#{y},false,false,false,false,0,null);" jssh_command += "#{element_object}.dispatchEvent(event);\n" #log "jssh_command is: #{jssh_command}" jssh_socket.send("#{jssh_command}", 0) read_socket() # else # @jssh_socket.send("typeof(#{element_object}.click);\n", 0) # isDefined = read_socket() # if(isDefined == "undefined") # fire_event("onclick") # else # @jssh_socket.send("#{element_object}.click();\n" , 0) # read_socket() # end #end highlight(:clear) # Wait for firefox to reload. wait() end Paul On Tue, Jun 2, 2009 at 3:39 PM, Alan Ark wrote: > Hi there. > > > > I?m using > > WinXp, FF 3.0.10, Ruby 1.8.6, and Watir from trunk a few weeks ago. > > > > I?m seeing a strange situation where sometimes ?click? does not appear to > do anything from Firewatir. > > Under IE, the code would behave rather well and move you to the expected > page. > > > > I?ve repro?d the problem on a public web site. You should be able to cut > and paste the following code right into a command window. > > > > set watir_browser=firefox > > irb > > require 'Watir' > > bb=Watir::Browser.new() > > bb.goto("http://www.cbssports.com/nba") > > alan=bb.div(:class,"gameContainer") > > alan.links.each { |qq| puts qq.text } > > alan.link(:text,"Orlando").click # for some reason it does not actually > move the browser onto the next page > > sleep 30 # Just slow things down so we can see that the browser does not go > anywhere > > bb.link(:text,"Orlando").click > > > > > > One thing I tried was to modify firewatir/MozillaBaseElements.rb to > uncomment the lines showing > > - #{element_object} > > - #{element_type} > > - #{jssh_command} > > > > But those lines are not showing up in IRB like I would have expected them > to, so I modified firewatir/elements.rb too. > > > > Got something interesting from irb > > > > irb(main):006:0> alan.link(:text,"Orlando").click > > *elements_0_A[0]* and HTMLAnchorElement > > jssh_command is: var event = > .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal > > se,false,false,0,null);elements_0_A[0].dispatchEvent(event); > > > > irb(main):009:0> bb.link(:text,"Orlando").click > > *elements_A*[356] and HTMLAnchorElement > > jssh_command is: var event = *document* > .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f > > alse,false,false,false,0,null);elements_A[356].dispatchEvent(event); > > => 0 > > > > I?m guessing that @container.document_var is not being set correctly on > the assignment to ?alan?, but I?m not entirely sure on how to proceed. > > > > Looking for comments. Thanks for listening. > > -Alan > > > ------------------------------ > > *Alan Ark* *|* *QA Manager**|* *Compl?* *| **arkie at compli.com **|* * > office:* 503.294.2020 x106 *|* *fax:* 503.294.1200 *|* www.compli. > com > > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael_hwee at yahoo.com Tue Jun 2 19:03:28 2009 From: michael_hwee at yahoo.com (Michael Hwee) Date: Tue, 2 Jun 2009 16:03:28 -0700 (PDT) Subject: [Wtr-development] Weirdness with click in FireWatir. In-Reply-To: References: Message-ID: <71736.70309.qm@web31812.mail.mud.yahoo.com> I think the object locate() wasn't called correctly. I noticed first element is usually not located until at method called. If you try using additional element before the link, it might work fine. For example, assuming the link is inside the DIV object. alan.div(:index,1).link(:text,"Orlando").click?? ________________________________ From: Paul Rogers To: Watir development Sent: Tuesday, June 2, 2009 3:43:54 PM Subject: Re: [Wtr-development] Weirdness with click in FireWatir. Alan, the code below is from a very old version of firewatir. But I also had problems with the click event, but its so long ago I cant remember what exactly. ??? #?? method to fire click event on elements.? ??? def click ??? ??? ? #assert_exists ??? ??? ? assert_enabled ??? ??? ? highlight(:set) ??? ??? ? #log "#{element_object} and #{element_type}" ??? ??? ? #case element_type ??? ??? ??? ? ??? ??? ??? #? when "HTMLAnchorElement", "HTMLImageElement" ??? ??? ??? ??? ? # Special check for link or anchor tag. Because click() doesn't work on links. ??? ??? ??? ??? ? # More info: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443 ??? ??? ??? ??? ? # https://bugzilla.mozilla.org/show_bug.cgi?id=148585 ??? ??? ??? ??? ? jssh_command = "var event = #{DOCUMENT_VAR}.createEvent(\"MouseEvents\");" ??? ??? ??? ??? ? x=self.left_edge ??? ??? ??? ??? ? y=self.top_edge ??? ??? ??? ??? ? # Info about initMouseEvent at: http://www.xulplanet.com/references/objref/MouseEvent.html??????? ??? ??? ??? ??? ? jssh_command += "event.initMouseEvent('click',true,true,null,1,0,0,#{x},#{y},false,false,false,false,0,null);" ??? ??? ??? ??? ? jssh_command += "#{element_object}.dispatchEvent(event);\n" ??? ??? ??? ??? ? ??? ??? ??? ??? ? #log "jssh_command is: #{jssh_command}" ??? ??? ??? ??? ? jssh_socket.send("#{jssh_command}", 0) ??? ??? ??? ??? ? read_socket() ??? ??? ??? ?# else ??? ??? ??? ?#???? @jssh_socket.send("typeof(#{element_object}.click);\n", 0) ??? ??? ??? ?#???? isDefined = read_socket() ??? ??? ??? ?#???? if(isDefined == "undefined") ??? ??? ??? ?#???????? fire_event("onclick") ??? ??? ??? ?#???? else ??? ??? ??? ?#???????? @jssh_socket.send("#{element_object}.click();\n" , 0) ??? ??? ??? ?#???????? read_socket() ??? ??? ??? ?#???? end??? ??? ??? ? #end ??? ??? ? highlight(:clear) ??? ??? ? # Wait for firefox to reload. ??? ??? ? wait() ??? ? end??? Paul On Tue, Jun 2, 2009 at 3:39 PM, Alan Ark wrote: Hi there. >? >I?m using >WinXp, FF 3.0.10, Ruby 1.8.6, and Watir from trunk a few weeks ago. >? >I?m seeing a strange situation where sometimes ?click? does not appear to do anything from Firewatir.? >Under IE, the code would behave rather well and move you to the expected page. >? >I?ve repro?d the problem on a public web site.? You should be able to cut and paste the following code right into a command window. >? >set watir_browser=firefox >irb >require 'Watir' >bb=Watir::Browser.new() >bb.goto("http://www.cbssports.com/nba") >alan=bb.div(:class,"gameContainer") >alan.links.each { |qq| puts qq.text } >alan.link(:text,"Orlando").click? # for some reason it does not actually move the browser onto the next page >sleep 30 # Just slow things down so we can see that the browser does not go anywhere >bb.link(:text,"Orlando").click >? >? >One thing I tried was to modify firewatir/MozillaBaseElements.rb to uncomment the lines showing >-????????? #{element_object} >-????????? #{element_type} >-????????? #{jssh_command} >? >But those lines are not showing up in IRB like I would have expected them to, so I modified firewatir/elements.rb too. >? >Got something interesting from irb >? >irb(main):006:0> alan.link(:text,"Orlando").click >elements_0_A[0]and HTMLAnchorElement >jssh_command is: var event = .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal >se,false,false,0,null);elements_0_A[0].dispatchEvent(event); >? >irb(main):009:0> bb.link(:text,"Orlando").click >elements_A[356] and HTMLAnchorElement >jssh_command is: var event = document.createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f >alse,false,false,false,0,null);elements_A[356].dispatchEvent(event); >=> 0 >? >I?m guessing that @container.document_var is not being set correctly on the assignment to ?alan?, but I?m not entirely sure on how to proceed. >? >Looking for comments.? Thanks for listening. >-Alan >? > ________________________________ >Alan Ark?|?QA Manager|?Compl??|?arkie at compli.com |?office:?503.294.2020 x106?|?fax:?503.294.1200?|?www.compli.com >? >_______________________________________________ >Wtr-development mailing list >Wtr-development at rubyforge.org >http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arkie at compli.com Wed Jun 3 14:23:10 2009 From: arkie at compli.com (Alan Ark) Date: Wed, 3 Jun 2009 11:23:10 -0700 Subject: [Wtr-development] Weirdness with click in FireWatir. In-Reply-To: <71736.70309.qm@web31812.mail.mud.yahoo.com> References: <71736.70309.qm@web31812.mail.mud.yahoo.com> Message-ID: It does look like something is not right with setting the @container.document_var when (guessing here) when locate is not called correctly. Using my original code: bb is a reference to the Firefox browser >From irb: irb(main):009:0> bb.links[1].click arr_coll_A_2[0] and HTMLAnchorElement jssh_command is: var event = document.createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f alse,false,false,false,0,null);arr_coll_A_2[0].dispatchEvent(event); which is fine. It clicks away. But when adding a Div to the call, it does not click away. irb(main):008:0> bb.div(:class,"gameContainer").links[1].click arr_coll_A_1[0] and HTMLAnchorElement jssh_command is: var event = .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal se,false,false,0,null);arr_coll_A_1[0].dispatchEvent(event); The jssh command is incorrect as .createEvent is called on "nothing" (the variable "alan" in the thread is already a FireWatir::Div object) Going to do more digging. -Alan ________________________________ From: wtr-development-bounces at rubyforge.org [mailto:wtr-development-bounces at rubyforge.org] On Behalf Of Michael Hwee Sent: Tuesday, June 02, 2009 4:03 PM To: Watir development Subject: Re: [Wtr-development] Weirdness with click in FireWatir. I think the object locate() wasn't called correctly. I noticed first element is usually not located until at method called. If you try using additional element before the link, it might work fine. For example, assuming the link is inside the DIV object. alan.div(:index,1).link(:text,"Orlando").click ________________________________ From: Paul Rogers To: Watir development Sent: Tuesday, June 2, 2009 3:43:54 PM Subject: Re: [Wtr-development] Weirdness with click in FireWatir. Alan, the code below is from a very old version of firewatir. But I also had problems with the click event, but its so long ago I cant remember what exactly. # method to fire click event on elements. def click #assert_exists assert_enabled highlight(:set) #log "#{element_object} and #{element_type}" #case element_type # when "HTMLAnchorElement", "HTMLImageElement" # Special check for link or anchor tag. Because click() doesn't work on links. # More info: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443 # https://bugzilla.mozilla.org/show_bug.cgi?id=148585 jssh_command = "var event = #{DOCUMENT_VAR}.createEvent(\"MouseEvents\");" x=self.left_edge y=self.top_edge # Info about initMouseEvent at: http://www.xulplanet.com/references/objref/MouseEvent.html jssh_command += "event.initMouseEvent('click',true,true,null,1,0,0,#{x},#{y},false,false,false,false,0,null);" jssh_command += "#{element_object}.dispatchEvent(event);\n" #log "jssh_command is: #{jssh_command}" jssh_socket.send("#{jssh_command}", 0) read_socket() # else # @jssh_socket.send("typeof(#{element_object}.click);\n", 0) # isDefined = read_socket() # if(isDefined == "undefined") # fire_event("onclick") # else # @jssh_socket.send("#{element_object}.click();\n" , 0) # read_socket() # end #end highlight(:clear) # Wait for firefox to reload. wait() end Paul On Tue, Jun 2, 2009 at 3:39 PM, Alan Ark > wrote: Hi there. I'm using WinXp, FF 3.0.10, Ruby 1.8.6, and Watir from trunk a few weeks ago. I'm seeing a strange situation where sometimes "click" does not appear to do anything from Firewatir. Under IE, the code would behave rather well and move you to the expected page. I've repro'd the problem on a public web site. You should be able to cut and paste the following code right into a command window. set watir_browser=firefox irb require 'Watir' bb=Watir::Browser.new() bb.goto("http://www.cbssports.com/nba") alan=bb.div(:class,"gameContainer") alan.links.each { |qq| puts qq.text } alan.link(:text,"Orlando").click # for some reason it does not actually move the browser onto the next page sleep 30 # Just slow things down so we can see that the browser does not go anywhere bb.link(:text,"Orlando").click One thing I tried was to modify firewatir/MozillaBaseElements.rb to uncomment the lines showing - #{element_object} - #{element_type} - #{jssh_command} But those lines are not showing up in IRB like I would have expected them to, so I modified firewatir/elements.rb too. Got something interesting from irb irb(main):006:0> alan.link(:text,"Orlando").click elements_0_A[0] and HTMLAnchorElement jssh_command is: var event = .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal se,false,false,0,null);elements_0_A[0].dispatchEvent(event); irb(main):009:0> bb.link(:text,"Orlando").click elements_A[356] and HTMLAnchorElement jssh_command is: var event = document.createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f alse,false,false,false,0,null);elements_A[356].dispatchEvent(event); => 0 I'm guessing that @container.document_var is not being set correctly on the assignment to "alan", but I'm not entirely sure on how to proceed. Looking for comments. Thanks for listening. -Alan ________________________________ Alan Ark | QA Manager| Compl? | arkie at compli.com | office: 503.294.2020 x106 | fax: 503.294.1200 | www.compli.com _______________________________________________ Wtr-development mailing list Wtr-development at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.rogers at shaw.ca Wed Jun 3 15:38:35 2009 From: paul.rogers at shaw.ca (Paul Rogers) Date: Wed, 3 Jun 2009 13:38:35 -0600 Subject: [Wtr-development] Weirdness with click in FireWatir. In-Reply-To: References: <71736.70309.qm@web31812.mail.mud.yahoo.com> Message-ID: my code has an assert_enabled - that will probably set the document var. Does the one in the firewatir click methid you are using have that? Paul On Wed, Jun 3, 2009 at 12:23 PM, Alan Ark wrote: > It does look like something is not right with setting the > @container.document_var when (guessing here) when locate is not called > correctly. > > > > Using my original code: bb is a reference to the Firefox browser > > From irb: > > irb(main):009:0> bb.links[1].click > > arr_coll_A_2[0] and HTMLAnchorElement > > jssh_command is: var event = > document.createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f > > alse,false,false,false,0,null);arr_coll_A_2[0].dispatchEvent(event); > > > > which is fine. It clicks away. > > > > But when adding a Div to the call, it does not click away. > > > > irb(main):008:0> bb.div(:class,"gameContainer").links[1].click > > arr_coll_A_1[0] and HTMLAnchorElement > > *jssh_command is: var event = > .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal > * > > *se,false,false,0,null);arr_coll_A_1[0].dispatchEvent(event);* > > > > The jssh command is incorrect as .createEvent is called on ?nothing? > > > > (the variable ?alan? in the thread is already a FireWatir::Div object) > > > > Going to do more digging. > > -Alan > > > ------------------------------ > > *From:* wtr-development-bounces at rubyforge.org [mailto: > wtr-development-bounces at rubyforge.org] *On Behalf Of *Michael Hwee > *Sent:* Tuesday, June 02, 2009 4:03 PM > *To:* Watir development > > *Subject:* Re: [Wtr-development] Weirdness with click in FireWatir. > > > > I think the object locate() wasn't called correctly. > I noticed first element is usually not located until at method called. > > > > If you try using additional element before the link, it might work fine. > > For example, assuming the link is inside the DIV object. > > > > alan.div(:index,1).link(:text,"Orlando").click > > > ------------------------------ > > *From:* Paul Rogers > *To:* Watir development > *Sent:* Tuesday, June 2, 2009 3:43:54 PM > *Subject:* Re: [Wtr-development] Weirdness with click in FireWatir. > > Alan, > > the code below is from a very old version of firewatir. But I also had > problems with the click event, but its so long ago I cant remember what > exactly. > > # method to fire click event on elements. > def click > #assert_exists > assert_enabled > > highlight(:set) > #log "#{element_object} and #{element_type}" > #case element_type > > # when "HTMLAnchorElement", "HTMLImageElement" > # Special check for link or anchor tag. Because click() > doesn't work on links. > # More info: > http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443 > # https://bugzilla.mozilla.org/show_bug.cgi?id=148585 > > jssh_command = "var event = > #{DOCUMENT_VAR}.createEvent(\"MouseEvents\");" > x=self.left_edge > y=self.top_edge > # Info about initMouseEvent at: > http://www.xulplanet.com/references/objref/MouseEvent.html > jssh_command += > "event.initMouseEvent('click',true,true,null,1,0,0,#{x},#{y},false,false,false,false,0,null);" > jssh_command += > "#{element_object}.dispatchEvent(event);\n" > > #log "jssh_command is: #{jssh_command}" > jssh_socket.send("#{jssh_command}", 0) > read_socket() > # else > # @jssh_socket.send("typeof(#{element_object}.click);\n", > 0) > # isDefined = read_socket() > # if(isDefined == "undefined") > # fire_event("onclick") > # else > # @jssh_socket.send("#{element_object}.click();\n" , > 0) > # read_socket() > # end > #end > highlight(:clear) > # Wait for firefox to reload. > wait() > end > > > Paul > > On Tue, Jun 2, 2009 at 3:39 PM, Alan Ark wrote: > > Hi there. > > > > I?m using > > WinXp, FF 3.0.10, Ruby 1.8.6, and Watir from trunk a few weeks ago. > > > > I?m seeing a strange situation where sometimes ?click? does not appear to > do anything from Firewatir. > > Under IE, the code would behave rather well and move you to the expected > page. > > > > I?ve repro?d the problem on a public web site. You should be able to cut > and paste the following code right into a command window. > > > > set watir_browser=firefox > > irb > > require 'Watir' > > bb=Watir::Browser.new() > > bb.goto("http://www.cbssports.com/nba") > > alan=bb.div(:class,"gameContainer") > > alan.links.each { |qq| puts qq.text } > > alan.link(:text,"Orlando").click # for some reason it does not actually > move the browser onto the next page > > sleep 30 # Just slow things down so we can see that the browser does not go > anywhere > > bb.link(:text,"Orlando").click > > > > > > One thing I tried was to modify firewatir/MozillaBaseElements.rb to > uncomment the lines showing > > - #{element_object} > > - #{element_type} > > - #{jssh_command} > > > > But those lines are not showing up in IRB like I would have expected them > to, so I modified firewatir/elements.rb too. > > > > Got something interesting from irb > > > > irb(main):006:0> alan.link(:text,"Orlando").click > > *elements_0_A[0]* and HTMLAnchorElement > > jssh_command is: var event = > .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal > > se,false,false,0,null);elements_0_A[0].dispatchEvent(event); > > > > irb(main):009:0> bb.link(:text,"Orlando").click > > *elements_A*[356] and HTMLAnchorElement > > jssh_command is: var event = *document* > .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f > > alse,false,false,false,0,null);elements_A[356].dispatchEvent(event); > > => 0 > > > > I?m guessing that @container.document_var is not being set correctly on > the assignment to ?alan?, but I?m not entirely sure on how to proceed. > > > > Looking for comments. Thanks for listening. > > -Alan > > > ------------------------------ > > *Alan Ark* *|* *QA Manager**|* *Compl?* *| **arkie at compli.com **|* * > office:* 503.294.2020 x106 *|* *fax:* 503.294.1200 *|* www.compli. > com > > > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From arkie at compli.com Thu Jun 4 14:14:15 2009 From: arkie at compli.com (Alan Ark) Date: Thu, 4 Jun 2009 11:14:15 -0700 Subject: [Wtr-development] Weirdness with click in FireWatir. References: <71736.70309.qm@web31812.mail.mud.yahoo.com> Message-ID: This reply got held up for review by the mods - the reply was longer than 40 K. I'm going to punt on this for now. Another vote for http://jira.openqa.org/browse/WTR-313 just got sent thru =-) Thanks -Alan ________________________________ From: Alan Ark Sent: Wednesday, June 03, 2009 2:44 PM To: 'Watir development' Subject: RE: [Wtr-development] Weirdness with click in FireWatir. Hi Paul. Looks like the click methods do have assert_enabled (and assert_exists for good measure) In just trying other things, looks like the following types of calls also fail in a similar way bb.span(how,what).links[1].click bb.div(how,what).links[1].click bb.table(how,what).links[1].click I didn't try any other elements, but I'm thinking others would probably fail as well. ________________________________ From: wtr-development-bounces at rubyforge.org [mailto:wtr-development-bounces at rubyforge.org] On Behalf Of Paul Rogers Sent: Wednesday, June 03, 2009 12:39 PM To: Watir development Subject: Re: [Wtr-development] Weirdness with click in FireWatir. my code has an assert_enabled - that will probably set the document var. Does the one in the firewatir click methid you are using have that? Paul On Wed, Jun 3, 2009 at 12:23 PM, Alan Ark > wrote: It does look like something is not right with setting the @container.document_var when (guessing here) when locate is not called correctly. Using my original code: bb is a reference to the Firefox browser >From irb: irb(main):009:0> bb.links[1].click arr_coll_A_2[0] and HTMLAnchorElement jssh_command is: var event = document.createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,f alse,false,false,false,0,null);arr_coll_A_2[0].dispatchEvent(event); which is fine. It clicks away. But when adding a Div to the call, it does not click away. irb(main):008:0> bb.div(:class,"gameContainer").links[1].click arr_coll_A_1[0] and HTMLAnchorElement jssh_command is: var event = .createEvent("MouseEvents");event.initMouseEvent('click',true,true,null,1,0,0,0,0,false,fal se,false,false,0,null);arr_coll_A_1[0].dispatchEvent(event); The jssh command is incorrect as .createEvent is called on "nothing" (the variable "alan" in the thread is already a FireWatir::Div object) Going to do more digging. -Alan [Arkie] --------SNIP the rest of the thread.----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From lgeorge at everesttech.com Mon Jun 15 10:38:15 2009 From: lgeorge at everesttech.com (Leah George) Date: Mon, 15 Jun 2009 10:38:15 -0400 Subject: [Wtr-development] Opportunity with Watir Message-ID: <006901c9edc6$eb741290$ba0ba8c0@everesttech.com> Dear Listers, I am Leah, recruiter at Everest Technologies. I am always looking for candidates who consider themselves as experts in Watir. Currently I have an open position in OH. It's a long term contract. If you or anyone you know might be interested to learn further please call me at 614-436-3120 (292) or just reply to my email with an updates copy of your resume. I need to close this by EOD today. Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 9585 bytes Desc: not available URL: From aidy.lewis at googlemail.com Wed Jun 24 13:01:12 2009 From: aidy.lewis at googlemail.com (aidy lewis) Date: Wed, 24 Jun 2009 18:01:12 +0100 Subject: [Wtr-development] #fire_event include event parameter Message-ID: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Has anyone worked on trying to include event parameters in #fire_event in ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb I am trying to select of date here: 17 Aidy From paul.rogers at shaw.ca Wed Jun 24 14:09:38 2009 From: paul.rogers at shaw.ca (Paul Rogers) Date: Wed, 24 Jun 2009 12:09:38 -0600 Subject: [Wtr-development] #fire_event include event parameter In-Reply-To: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> References: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Message-ID: I have code that does proper events in both ie and ff. Its not complete, but mostly working. Keep bugging me until I post it. Paul On Wed, Jun 24, 2009 at 11:01 AM, aidy lewis wrote: > Has anyone worked on trying to include event parameters in #fire_event > in > ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb > > I am trying to select of date here: > > > onclick="CalendarPopup_FindCalendar('ctl00_ctl00_ctl00_mainContentPlaceHolder_mainContentPlaceHolder_mainContentPlaceHolder_filterForm_modifiedDateFrom_calendarPopUp').SelectDate('6/17/2009')" > style="color: Black; background-color: White; font-family: > Verdana,Helvetica,Tahoma,Arial; font-size: xx-small; cursor: > pointer;">17 > > Aidy > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charley.baker at gmail.com Wed Jun 24 14:33:04 2009 From: charley.baker at gmail.com (Charley Baker) Date: Wed, 24 Jun 2009 12:33:04 -0600 Subject: [Wtr-development] #fire_event include event parameter In-Reply-To: References: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Message-ID: bug! bug! :) It would be really useful stuff to have. I guess I've always gotten around it in different ways, and it's yet another reminder that I should spend more time learning javascript properly. -c On Wed, Jun 24, 2009 at 12:09 PM, Paul Rogers wrote: > I have code that does proper events in both ie and ff. Its not complete, > but mostly working. Keep bugging me until I post it. > > Paul > > On Wed, Jun 24, 2009 at 11:01 AM, aidy lewis wrote: > >> Has anyone worked on trying to include event parameters in #fire_event >> in >> ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb >> >> I am trying to select of date here: >> >> > >> onclick="CalendarPopup_FindCalendar('ctl00_ctl00_ctl00_mainContentPlaceHolder_mainContentPlaceHolder_mainContentPlaceHolder_filterForm_modifiedDateFrom_calendarPopUp').SelectDate('6/17/2009')" >> style="color: Black; background-color: White; font-family: >> Verdana,Helvetica,Tahoma,Arial; font-size: xx-small; cursor: >> pointer;">17 >> >> Aidy >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marekj.com at gmail.com Wed Jun 24 22:47:19 2009 From: marekj.com at gmail.com (marekj) Date: Wed, 24 Jun 2009 21:47:19 -0500 Subject: [Wtr-development] #fire_event include event parameter In-Reply-To: References: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Message-ID: bug! bug! from here too Paul Just throw it up on github which reminds me. I have been stingy and not sharing some of my codesz even if half-ass codes. We should start a half ass code sharing program marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Wed, Jun 24, 2009 at 1:33 PM, Charley Baker wrote: > bug! bug! :) It would be really useful stuff to have. I guess I've always > gotten around it in different ways, and it's yet another reminder that I > should spend more time learning javascript properly. > > -c > > > On Wed, Jun 24, 2009 at 12:09 PM, Paul Rogers wrote: > >> I have code that does proper events in both ie and ff. Its not complete, >> but mostly working. Keep bugging me until I post it. >> >> Paul >> >> On Wed, Jun 24, 2009 at 11:01 AM, aidy lewis wrote: >> >>> Has anyone worked on trying to include event parameters in #fire_event >>> in >>> ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb >>> >>> I am trying to select of date here: >>> >>> >> >>> onclick="CalendarPopup_FindCalendar('ctl00_ctl00_ctl00_mainContentPlaceHolder_mainContentPlaceHolder_mainContentPlaceHolder_filterForm_modifiedDateFrom_calendarPopUp').SelectDate('6/17/2009')" >>> style="color: Black; background-color: White; font-family: >>> Verdana,Helvetica,Tahoma,Arial; font-size: xx-small; cursor: >>> pointer;">17 >>> >>> Aidy >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-development at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.rogers at shaw.ca Wed Jun 24 23:38:13 2009 From: paul.rogers at shaw.ca (Paul Rogers) Date: Wed, 24 Jun 2009 21:38:13 -0600 Subject: [Wtr-development] #fire_event include event parameter In-Reply-To: References: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Message-ID: so I know where the additions to watir/firewatir are. I know where the test html was, but I really cant find the unit tests I started on. I'll take a look tomorrow at work, as it might be in the svn there. Keep bugging me ;-) The git repo is here, http://github.com/paulrogers/watirEvents/tree/master I'll add stuff as I get the chance Paul On Wed, Jun 24, 2009 at 8:47 PM, marekj wrote: > bug! bug! from here too Paul > Just throw it up on github > which reminds me. I have been stingy and not sharing some of my codesz even > if half-ass codes. > We should start a half ass code sharing program > > marekj > > Watirloo: Semantic Page Objects in UseCases > http://github.com/marekj/watirloo/ > > > > > On Wed, Jun 24, 2009 at 1:33 PM, Charley Baker wrote: > >> bug! bug! :) It would be really useful stuff to have. I guess I've always >> gotten around it in different ways, and it's yet another reminder that I >> should spend more time learning javascript properly. >> >> -c >> >> >> On Wed, Jun 24, 2009 at 12:09 PM, Paul Rogers wrote: >> >>> I have code that does proper events in both ie and ff. Its not complete, >>> but mostly working. Keep bugging me until I post it. >>> >>> Paul >>> >>> On Wed, Jun 24, 2009 at 11:01 AM, aidy lewis wrote: >>> >>>> Has anyone worked on trying to include event parameters in #fire_event >>>> in >>>> ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb >>>> >>>> I am trying to select of date here: >>>> >>>> >>> >>>> onclick="CalendarPopup_FindCalendar('ctl00_ctl00_ctl00_mainContentPlaceHolder_mainContentPlaceHolder_mainContentPlaceHolder_filterForm_modifiedDateFrom_calendarPopUp').SelectDate('6/17/2009')" >>>> style="color: Black; background-color: White; font-family: >>>> Verdana,Helvetica,Tahoma,Arial; font-size: xx-small; cursor: >>>> pointer;">17 >>>> >>>> Aidy >>>> _______________________________________________ >>>> Wtr-development mailing list >>>> Wtr-development at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/wtr-development >>>> >>> >>> >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-development at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development >> > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marekj.com at gmail.com Thu Jun 25 00:11:13 2009 From: marekj.com at gmail.com (marekj) Date: Wed, 24 Jun 2009 23:11:13 -0500 Subject: [Wtr-development] #fire_event include event parameter In-Reply-To: References: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Message-ID: Ok, good step thanks, now git push origin should do it. marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Wed, Jun 24, 2009 at 10:38 PM, Paul Rogers wrote: > so I know where the additions to watir/firewatir are. I know where the test > html was, but I really cant find the unit tests I started on. I'll take a > look tomorrow at work, as it might be in the svn there. > > Keep bugging me ;-) > The git repo is here,? http://github.com/paulrogers/watirEvents/tree/master > I'll add stuff as I get the chance > > Paul > > On Wed, Jun 24, 2009 at 8:47 PM, marekj wrote: >> >> bug! bug! from here too Paul >> Just throw it up on github >> which reminds me. I have been stingy and not sharing some of my codesz >> even if half-ass codes. >> We should start a half ass code sharing program >> >> marekj >> >> Watirloo: Semantic Page Objects in UseCases >> http://github.com/marekj/watirloo/ >> >> >> >> On Wed, Jun 24, 2009 at 1:33 PM, Charley Baker >> wrote: >>> >>> bug! bug! :) It would be really useful stuff to have. I guess I've always >>> gotten around it in different ways, and it's yet another reminder that I >>> should spend more time learning javascript properly. >>> >>> -c >>> >>> On Wed, Jun 24, 2009 at 12:09 PM, Paul Rogers >>> wrote: >>>> >>>> I have code that does proper events in both ie and ff. Its not complete, >>>> but mostly working. Keep bugging me until I post it. >>>> >>>> Paul >>>> >>>> On Wed, Jun 24, 2009 at 11:01 AM, aidy lewis >>>> wrote: >>>>> >>>>> Has anyone worked on trying to include event parameters in #fire_event >>>>> in >>>>> ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb >>>>> >>>>> I am trying to select of date here: >>>>> >>>>> >>>> >>>>> onclick="CalendarPopup_FindCalendar('ctl00_ctl00_ctl00_mainContentPlaceHolder_mainContentPlaceHolder_mainContentPlaceHolder_filterForm_modifiedDateFrom_calendarPopUp').SelectDate('6/17/2009')" >>>>> style="color: Black; background-color: White; font-family: >>>>> Verdana,Helvetica,Tahoma,Arial; font-size: xx-small; cursor: >>>>> pointer;">17 >>>>> >>>>> Aidy >>>>> _______________________________________________ >>>>> Wtr-development mailing list >>>>> Wtr-development at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/wtr-development >>>> >>>> >>>> _______________________________________________ >>>> Wtr-development mailing list >>>> Wtr-development at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/wtr-development >>> >>> >>> _______________________________________________ >>> Wtr-development mailing list >>> Wtr-development at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wtr-development >> >> >> _______________________________________________ >> Wtr-development mailing list >> Wtr-development at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wtr-development > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > From paul.rogers at shaw.ca Thu Jun 25 10:56:10 2009 From: paul.rogers at shaw.ca (Paul Rogers) Date: Thu, 25 Jun 2009 08:56:10 -0600 Subject: [Wtr-development] #fire_event include event parameter In-Reply-To: References: <7ac2300c0906241001w7494bb0bo5f45271d5adab1c9@mail.gmail.com> Message-ID: I found some more of the unit tests. Maybe I didnt write as may as I thought. Its unlilkely I'll be able to do it today though Paul On Wed, Jun 24, 2009 at 10:11 PM, marekj wrote: > Ok, good step thanks, > now git push origin should do it. > > marekj > > Watirloo: Semantic Page Objects in UseCases > http://github.com/marekj/watirloo/ > > > > > On Wed, Jun 24, 2009 at 10:38 PM, Paul Rogers wrote: > > so I know where the additions to watir/firewatir are. I know where the > test > > html was, but I really cant find the unit tests I started on. I'll take a > > look tomorrow at work, as it might be in the svn there. > > > > Keep bugging me ;-) > > The git repo is here, > http://github.com/paulrogers/watirEvents/tree/master > > I'll add stuff as I get the chance > > > > Paul > > > > On Wed, Jun 24, 2009 at 8:47 PM, marekj wrote: > >> > >> bug! bug! from here too Paul > >> Just throw it up on github > >> which reminds me. I have been stingy and not sharing some of my codesz > >> even if half-ass codes. > >> We should start a half ass code sharing program > >> > >> marekj > >> > >> Watirloo: Semantic Page Objects in UseCases > >> http://github.com/marekj/watirloo/ > >> > >> > >> > >> On Wed, Jun 24, 2009 at 1:33 PM, Charley Baker > > >> wrote: > >>> > >>> bug! bug! :) It would be really useful stuff to have. I guess I've > always > >>> gotten around it in different ways, and it's yet another reminder that > I > >>> should spend more time learning javascript properly. > >>> > >>> -c > >>> > >>> On Wed, Jun 24, 2009 at 12:09 PM, Paul Rogers > >>> wrote: > >>>> > >>>> I have code that does proper events in both ie and ff. Its not > complete, > >>>> but mostly working. Keep bugging me until I post it. > >>>> > >>>> Paul > >>>> > >>>> On Wed, Jun 24, 2009 at 11:01 AM, aidy lewis < > aidy.lewis at googlemail.com> > >>>> wrote: > >>>>> > >>>>> Has anyone worked on trying to include event parameters in > #fire_event > >>>>> in > >>>>> > ruby\lib\ruby\gems\1.8\gems\firewatir-1.6.2\lib\firewatir\MozillaBaseElement.rb > >>>>> > >>>>> I am trying to select of date here: > >>>>> > >>>>> >>>>> > >>>>> > onclick="CalendarPopup_FindCalendar('ctl00_ctl00_ctl00_mainContentPlaceHolder_mainContentPlaceHolder_mainContentPlaceHolder_filterForm_modifiedDateFrom_calendarPopUp').SelectDate('6/17/2009')" > >>>>> style="color: Black; background-color: White; font-family: > >>>>> Verdana,Helvetica,Tahoma,Arial; font-size: xx-small; cursor: > >>>>> pointer;">17 > >>>>> > >>>>> Aidy > >>>>> _______________________________________________ > >>>>> Wtr-development mailing list > >>>>> Wtr-development at rubyforge.org > >>>>> http://rubyforge.org/mailman/listinfo/wtr-development > >>>> > >>>> > >>>> _______________________________________________ > >>>> Wtr-development mailing list > >>>> Wtr-development at rubyforge.org > >>>> http://rubyforge.org/mailman/listinfo/wtr-development > >>> > >>> > >>> _______________________________________________ > >>> Wtr-development mailing list > >>> Wtr-development at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/wtr-development > >> > >> > >> _______________________________________________ > >> Wtr-development mailing list > >> Wtr-development at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/wtr-development > > > > > > _______________________________________________ > > Wtr-development mailing list > > Wtr-development at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-development > > > _______________________________________________ > Wtr-development mailing list > Wtr-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -------------- next part -------------- An HTML attachment was scrubbed... URL: