From bret at pettichord.com Thu Nov 3 23:48:43 2011 From: bret at pettichord.com (Bret Pettichord) Date: Thu, 3 Nov 2011 22:48:43 -0500 Subject: [Wtr-development] AutoIt? Message-ID: Is this still an accurage description of how we handle pop up windows? http://wiki.openqa.org/display/WTR/Pop+Ups -- Bret Pettichord Director, Watir Project, www.watir.com Blog, www.testingwithvision.com Twitter, www.twitter.com/bpettichord -------------- next part -------------- An HTML attachment was scrubbed... URL: From alister.scott at gmail.com Fri Nov 4 00:33:10 2011 From: alister.scott at gmail.com (Alister Scott) Date: Fri, 4 Nov 2011 14:33:10 +1000 Subject: [Wtr-development] AutoIt? In-Reply-To: References: Message-ID: I guess it depends on what you mean by popups. Watir WebDriver deals with pop ups fairly simply: http://watirwebdriver.com/browser-popups/ But there's also JavaScript dialogs which are sometimes considered popups: http://watirwebdriver.com/javascript-dialogs/ Cheers, Alister Scott Brisbane, Australia Watir Web Master: http://watir.com Blog: http://watirmelon.com LinkedIn: http://www.linkedin.com/in/alisterscott "There are two ways to get enough: One is to continue to accumulate more and more. The other is to desire less." *~ G. K. Chesterton* On Fri, Nov 4, 2011 at 1:48 PM, Bret Pettichord wrote: > Is this still an accurage description of how we handle pop up windows? > > http://wiki.openqa.org/display/WTR/Pop+Ups > > > > > -- > Bret Pettichord > Director, Watir Project, www.watir.com > > Blog, www.testingwithvision.com > Twitter, www.twitter.com/bpettichord > > > _______________________________________________ > 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 zeljko.filipin at wa-research.ch Fri Nov 4 04:22:19 2011 From: zeljko.filipin at wa-research.ch (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 4 Nov 2011 09:22:19 +0100 Subject: [Wtr-development] AutoIt? In-Reply-To: References: Message-ID: On Fri, Nov 4, 2011 at 4:48 AM, Bret Pettichord wrote: > Is this still an accurage description of how we handle pop up windows? > http://wiki.openqa.org/display/WTR/Pop+Ups I think popup support has the worst documentation in Watir project. I plan to write about popups in the book, but it is not high on my list. One of the reasons that it is low on the list is that I never had to work with them, so I have almost no experience. ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at wa-research.ch Fri Nov 4 07:01:25 2011 From: zeljko.filipin at wa-research.ch (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Fri, 4 Nov 2011 12:01:25 +0100 Subject: [Wtr-development] watir-webdriver 0.3.8 Message-ID: More information at http://watir.com/2011/11/04/watir-webdriver-0-3-8/ ?eljko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhagen at godaddy.com Fri Nov 4 11:54:53 2011 From: mhagen at godaddy.com (mhagen at godaddy.com) Date: Fri, 04 Nov 2011 08:54:53 -0700 Subject: [Wtr-development] =?utf-8?q?AutoIt=3F?= Message-ID: <20111104085453.b4ff42bcf6d3169bc7edd57ed7851626.9b1c136c32.wbe@email00.secureserver.net> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sigimg1 Type: image/jpeg Size: 9747 bytes Desc: not available URL: From jarmo.p at gmail.com Fri Nov 4 12:06:51 2011 From: jarmo.p at gmail.com (Jarmo) Date: Fri, 4 Nov 2011 18:06:51 +0200 Subject: [Wtr-development] AutoIt? In-Reply-To: <20111104085453.b4ff42bcf6d3169bc7edd57ed7851626.9b1c136c32.wbe@email00.secureserver.net> References: <20111104085453.b4ff42bcf6d3169bc7edd57ed7851626.9b1c136c32.wbe@email00.secureserver.net> Message-ID: AutoIt is not installed anymore with Watir though. Now you get the gem i've made called RAutomation https://github.com/jarmo/rautomation Jarmo On Fri, Nov 4, 2011 at 5:54 PM, wrote: > I've used AutoIT to some degree, especially with Windows OS dialogs such > as the Print dialog. Did not realize it was installed with Watir, that must > have been a recent change. > > Snippet: > > # Windows OS system dialogs (print, save, open file, etc...) > SYSTEM_DLG = "[Class:#32770]" > OPEN = "Open" > CANCEL = "Cancel" > $autoit = WIN32OLE.new('AutoItx3.Control') > > def WBE_Windows_System_Print(action = "&Print") > # wait up to 5 seconds for print dialog to appear > $autoit.WinWaitActive(SYSTEM_DLG, "", 5) > if (action == CANCEL) > $autoit.ControlClick(SYSTEM_DLG,"",CANCEL) > print "I hit cancel button" > else > $autoit.Send("{ENTER}") > print "I hit enter...now you manually retrieve printout" > end > end > > I found I was having issue with clicking on the final print button in the > system dialog, so I just sent an Enter key, which defaults to hitting print > in Windows. > > Hope this helps, > > Mark Hagen > Automation QA Engineer > GoDaddy.com > 14455 N. Hayden Road > Scottsdale, AZ 85260 > Mobile: 630-533-5501 > www.godaddy.com > > I am an employee of Go Daddy. The views expressed on this discussion board > are mine > alone and do not necessarily reflect the views of Go Daddy.com, Inc. or > its > affiliates. > > -------- Original Message -------- > Subject: Re: [Wtr-development] AutoIt? > From: ?eljko_Filipin > Date: Fri, November 04, 2011 1:22 am > To: Watir development > > On Fri, Nov 4, 2011 at 4:48 AM, Bret Pettichord > wrote: > > Is this still an accurage description of how we handle pop up windows? > > http://wiki.openqa.org/display/WTR/Pop+Ups > > I think popup support has the worst documentation in Watir project. I plan > to write about popups in the book, but it is not high on my list. One of > the reasons that it is low on the list is that I never had to work with > them, so I have almost no experience. > > ?eljko > ------------------------------ > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 9747 bytes Desc: not available URL: From alister.scott at gmail.com Mon Nov 7 17:19:26 2011 From: alister.scott at gmail.com (alister.scott at gmail.com) Date: Mon, 07 Nov 2011 22:19:26 +0000 Subject: [Wtr-development] Questionaire on Dates for Ruby Automated Testing Conference 2012 in Austin Message-ID: <20cf3074d32297202204b12c7285@google.com> If you have trouble viewing or submitting this form, you can fill it out online: https://docs.google.com/spreadsheet/viewform?formkey=dGJ2R2E1MlBSZWx5LUVObVJUaWZHX1E6MQ Ruby Automated Testing Conference 2012 in Austin Questionaire for Watir Team Do you think you'd be able to attend such a conference? * We are investigating the feasibility of subsidized travel costs for Watir Core Team members Yes Maybe No What dates could you attend? Thursday 9 - Sunday 12 February 2012 Thursday 16 - Sunday 19 February 2012 Thursday 23 - Sunday 16 February 2012 Thursday 22 - Sunday 25 March (week after SXSW finishes) 2012 None of the above What is your preferred date? Thursday 9 - Sunday 12 February 2012 Thursday 16 - Sunday 19 February 2012 Thursday 23 - Sunday 16 February 2012 Thursday 22 - Sunday 25 March (week after SXSW finishes) 2012 None of the above Powered by Google Docs Report Abuse - Terms of Service - Additional Terms -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at wa-research.ch Mon Nov 7 17:52:20 2011 From: zeljko.filipin at wa-research.ch (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Mon, 7 Nov 2011 23:52:20 +0100 Subject: [Wtr-development] Questionaire on Dates for Ruby Automated Testing Conference 2012 in Austin In-Reply-To: <20cf3074d32297202204b12c7285@google.com> References: <20cf3074d32297202204b12c7285@google.com> Message-ID: On Mon, Nov 7, 2011 at 11:19 PM, wrote: > If you have trouble viewing or submitting this form, you can fill it out online: "your name" field was not in e-mail, but it is on the web page. ?eljko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -------------- next part -------------- An HTML attachment was scrubbed... URL: From alister.scott at gmail.com Mon Nov 7 23:52:58 2011 From: alister.scott at gmail.com (Alister Scott) Date: Tue, 8 Nov 2011 15:52:58 +1100 Subject: [Wtr-development] Questionaire on Dates for Ruby Automated Testing Conference 2012 in Austin In-Reply-To: References: <20cf3074d32297202204b12c7285@google.com> Message-ID: <-8766271860045295136@unknownmsgid> Thanks for noticing, it was a late addition so I knew who was completing it. You're a good tester! Cheers, Alister Scott Brisbane, Australia On 08/11/2011, at 9:59 AM, "?eljko Filipin" wrote: On Mon, Nov 7, 2011 at 11:19 PM, wrote: > If you have trouble viewing or submitting this form, you can fill it out online: "your name" field was not in e-mail, but it is on the web page. ?eljko -- watir.com - community manager watir.com/book - author watirpodcast.com - host _______________________________________________ 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 watirjira at gmail.com Thu Nov 10 15:55:00 2011 From: watirjira at gmail.com (Chuck van der Linden (JIRA)) Date: Thu, 10 Nov 2011 14:55:00 -0600 (CST) Subject: [Wtr-development] [JIRA] Created: (WTR-494) Need better error message when .table[n][n] is called with invalid value Message-ID: <5400183.3.1320958500634.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Need better error message when .table[n][n] is called with invalid value ------------------------------------------------------------------------ Key: WTR-494 URL: http://jira.openqa.org/browse/WTR-494 Project: Watir Issue Type: Bug Components: Table Affects Versions: 2.0 Environment: watir 1 => 2 upgrade Reporter: Chuck van der Linden Calls to browser.table[r][c] will fail with a weird error message if one of the values is out of the possible range. Most typically seen in a situation where a user of watir 1 upgrades to watir 2 and does not revise their index values. repro try to do something like click a link in a 2x2 table, with indexing set for zero based, using code like browser.table(:how, 'what')[2][1].click Expected: error message that cell does not exist, index is out of range, or something along those lines. Actual: the error: "Undefined method `each' for :ole_object:Symbol (NoMethodError)" ref this thread on watir general http://groups.google.com/group/watir-general/browse_thread/thread/9d5ed8c8e161ce26 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Tue Nov 15 13:26:11 2011 From: watirjira at gmail.com (Aliaksandr (JIRA)) Date: Tue, 15 Nov 2011 12:26:11 -0600 (CST) Subject: [Wtr-development] [JIRA] Created: (WTR-495) RDoc does not provide information about elements accessor methods in Watir::COntainer due to they are meta-programmed Message-ID: <9730332.4.1321381571435.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> RDoc does not provide information about elements accessor methods in Watir::COntainer due to they are meta-programmed --------------------------------------------------------------------------------------------------------------------- Key: WTR-495 URL: http://jira.openqa.org/browse/WTR-495 Project: Watir Issue Type: Bug Components: Documentation Affects Versions: 2.0 Environment: watir 1 => 2 upgrade Reporter: Aliaksandr In watir RDoc http://rubydoc.info/gems/watir/2.0.0/Watir/Container, it is not obvious to find element accessor (factory) methods defined in Watir::Container module, as they are created with meta-programming e.g. bottom of https://github.com/bret/watir/blob/master/watir/lib/watir/table.rb. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Tue Nov 15 15:07:11 2011 From: watirjira at gmail.com (Jarmo Pertman (JIRA)) Date: Tue, 15 Nov 2011 14:07:11 -0600 (CST) Subject: [Wtr-development] [JIRA] Commented: (WTR-495) RDoc does not provide information about elements accessor methods in Watir::COntainer due to they are meta-programmed In-Reply-To: <9730332.4.1321381571435.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <16434700.6.1321387631667.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20360#action_20360 ] Jarmo Pertman commented on WTR-495: ----------------------------------- This just needs better documentation, that's all, but what Watir does to accomplish here is to have exactly the same element accessor methods to each element so if there's an ,
,

tags in html, then that means that Watir::IE has img, div and h1 methods too. I have to agree though that this makes it harder for newcomers to start using Watir. > RDoc does not provide information about elements accessor methods in Watir::COntainer due to they are meta-programmed > --------------------------------------------------------------------------------------------------------------------- > > Key: WTR-495 > URL: http://jira.openqa.org/browse/WTR-495 > Project: Watir > Issue Type: Bug > Components: Documentation > Affects Versions: 2.0 > Environment: watir 1 => 2 upgrade > Reporter: Aliaksandr > > In watir RDoc http://rubydoc.info/gems/watir/2.0.0/Watir/Container, it is not obvious to find element accessor (factory) methods defined in Watir::Container module, as they are created with meta-programming e.g. bottom of https://github.com/bret/watir/blob/master/watir/lib/watir/table.rb. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From watirjira at gmail.com Tue Nov 15 18:05:12 2011 From: watirjira at gmail.com (Jari Bakken (JIRA)) Date: Tue, 15 Nov 2011 17:05:12 -0600 (CST) Subject: [Wtr-development] [JIRA] Commented: (WTR-495) RDoc does not provide information about elements accessor methods in Watir::COntainer due to they are meta-programmed In-Reply-To: <9730332.4.1321381571435.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> Message-ID: <27561060.8.1321398312086.JavaMail.oqa-j2ee@openqa01.managed.contegix.com> [ http://jira.openqa.org/browse/WTR-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20361#action_20361 ] Jari Bakken commented on WTR-495: --------------------------------- With YARD it's possible to define custom handlers that know about meta-programming. I did it for watir-webdriver at one point for the attribute methods: https://github.com/jarib/watir-webdriver/blob/master/lib/yard/handlers/watir.rb The downside: You have to generate and host the docs yourself instead of pointing people to e.g. rubydoc.info - unless there's some way to make those sites pick up the custom handler that I'm unaware of. > RDoc does not provide information about elements accessor methods in Watir::COntainer due to they are meta-programmed > --------------------------------------------------------------------------------------------------------------------- > > Key: WTR-495 > URL: http://jira.openqa.org/browse/WTR-495 > Project: Watir > Issue Type: Bug > Components: Documentation > Affects Versions: 2.0 > Environment: watir 1 => 2 upgrade > Reporter: Aliaksandr > > In watir RDoc http://rubydoc.info/gems/watir/2.0.0/Watir/Container, it is not obvious to find element accessor (factory) methods defined in Watir::Container module, as they are created with meta-programming e.g. bottom of https://github.com/bret/watir/blob/master/watir/lib/watir/table.rb. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira From alister.scott at gmail.com Sat Nov 26 05:05:42 2011 From: alister.scott at gmail.com (Alister Scott) Date: Sat, 26 Nov 2011 20:05:42 +1000 Subject: [Wtr-development] Group for organizing Test Automation Bazaar in Austin in March 2012 Message-ID: See: https://groups.google.com/forum/?hl=en#!forum/test-automation-bazaarto join in Cheers, Alister Scott Brisbane, Australia Watir Web Master: http://watir.com Blog: http://watirmelon.com LinkedIn: http://www.linkedin.com/in/alisterscott "There are two ways to get enough: One is to continue to accumulate more and more. The other is to desire less." *~ G. K. Chesterton* -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergey.erokhin at gmail.com Wed Nov 30 09:39:22 2011 From: sergey.erokhin at gmail.com (Sergey Erokhin) Date: Wed, 30 Nov 2011 16:39:22 +0200 Subject: [Wtr-development] method_missing for row.cells but work for row.tds Message-ID: Hi all! i am out of watir for several month, last was 1.9.x now 2.0.4 Ruby 1.8.7 pl 352 (not on 1.9.3 yet :( ) IE9 W7/64 but, code (1.9.0) > id="cph_rpt#{entity}s_prrow_#{row_n}" > row=$ie.row(:id => id) > while row.exist? > * ret_list << row.cells[cell_n].text* > row_n+=1 > id="cph_rpt#{entity}s_prrow_#{row_n}" > row=$ie.row(:id => id) > end > now (2.0.4) private method `cells' called for # stack trace: C:/Ruby/lib/ruby/gems/1.8/gems/watir-2.0.4/lib/watir/element.rb:447:in `method_missing' but when i change code to ret_list << row.*tds*[cell_n].text work fine ... i 'fix' my script, but may be bug ? crosspost from https://groups.google.com/forum/#!topic/watir-general/pvYxHJSg7bw -------------- next part -------------- An HTML attachment was scrubbed... URL: