Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread Bret Pettichord
[EMAIL PROTECTED] wrote: > Hi > > I still can't get this to work. > > If I run the following code, Ruby returns the error message 'Unable to > attach to Modal Window nil after 10.5 seconds' > > Watir::IE::attach_timeout = 10 > > ie = Watir::IE::new > > ie.goto("http://www.echoecho.com/javascript4.h

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method

2006-09-15 Thread Bret Pettichord
Jason Alexander wrote: > My pleasure! > > And, great follow-up - very useful information! And, some great advice > for me going forward! > > Thanks so much! :) > Jason, I am drafting some guidelines (stay tuned) on how to ask for help on this forum. Sometimes i am frustrated by the way some q

Re: [Wtr-general] Click_no_wait error inside nested/sub frames

2006-09-15 Thread Bret Pettichord
Mark, I'm not able to read your email in my normal email reader. I think this is because you are using html mail, with color coding and all. In the future, would it be possible to post text-only email? (I don't think that is the only issue, because i am able to see other html email in my normal em

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread brian . kejser
Hi I still can't get this to work. If I run the following code, Ruby returns the error message 'Unable to attach to Modal Window nil after 10.5 seconds' Watir::IE::attach_timeout = 10 ie = Watir::IE::new ie.goto("http://www.echoecho.com/javascript4.htm";) ie.button(:name, "B1").click_no_wait

Re: [Wtr-general] Do you want Watir to be more popular?

2006-09-15 Thread Charley Baker
I certainly don't think the reference here is to the converse of making Watir an elitist, high cultured, artsy testing tool. :) I'll refer to popular in this context as widely used. Please read through my entire post before commenting, revealing secret at the end. To rephrase the question, I

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method

2006-09-15 Thread Jason Alexander
My pleasure! And, great follow-up - very useful information! And, some great advice for me going forward! Thanks so much! :) Thanks, -Jason Jason L. Alexander > Chief Technology Officer > Telligent Systems, Inc. > http://telligent.com > w: 214.420.1333 > http://JasonA.net -Or

Re: [Wtr-general] HOW TO READ DOM elements from Watir

2006-09-15 Thread Charley Baker
There are examples in watir's unittests, the user guide - http://www.openqa.org/watir/watir_user_guide.html There's also some documentation on microsoft's site on html and dhtml: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_ reference_entry.asp This mail

Re: [Wtr-general] HOW TO READ DOM elements from Watir

2006-09-15 Thread Phlip
srinivas vejalla wrote: > Can some one know me examples and list of APIs to read > DOM elements from Watir scripts. Do you need them, or does your program need them? If the former, you can use Firefox, hit your page, and use Tools -> DOM Inspector. I just discovered each time I click on an ele

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread David Schmidt
It's been a while, but I think I found the code in WET or perhaps in someone's blog, but in any case my statement here was to acknowledge that I didn't write that code, and to give credit to the author. David Bret Pettichord wrote: > David Schmidt wrote: > >> but I found some special code wr

[Wtr-general] Click_no_wait error inside nested/sub frames

2006-09-15 Thread Cain, Mark
I am getting this error:   1) Error: test0_Acquire_Add_Comments(TC_Acquire_New): SystemStackError: stack level too deep     C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574:in `attach_command'     C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2574:in `attach_command'     C:/ruby/lib/ruby/site

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method

2006-09-15 Thread Bret Pettichord
Jason Alexander wrote: > Thanks for everyone’s help! > > Actually, I found a workaround of sorts - > > In my tests, I would grab a div and assign it to a variable and use > that variable throughout. The problem was, during the operations after > the var assignment, I would do some things that wou

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread Bret Pettichord
David Schmidt wrote: > but I found some special code written by Yaxin Wang which > does some fancy C++ casting to give us the same type of handle. > David, It seems funny to hear that you found it. This was the code that Yaxin wrote at my request and to my specifications and contributed to Wa

[Wtr-general] Problem with element_by_xpath?

2006-09-15 Thread Alan Ark
Hi folks.   I am having a problem getting element_by_xpath to work cleanly.   Windoze XP pro Ruby 1.8.5 – One click installer. Watir 1.5.1.1081 – gem install Rexml 3.1.5   I’ve attached by browser to google.com.   From irb : elem=ie.element_by_xpath("//[EMAIL PROTECTED]")   r

[Wtr-general] HOW TO READ DOM elements from Watir

2006-09-15 Thread srinivas vejalla
HI Can some one know me examples and list of APIs to read DOM elements from Watir scripts. Thanks Srini ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread David Schmidt
Brian, The modal_dialog method uses a Win32 call that locates any popup window using your current IE window's handle (HWND). I had originally coded the (:hwnd, hwnd) parameters in addition to the version with no parameters, but they really do the same thing since there can only be *one* acti

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread Charley Baker
ie.button(:text, "Click Me").click_no_wait modal = ie.modal_dialog -Charley On 9/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hey > > In that case, how do I fetch a ModelDialog instance of the popup after > calling click_no_wait on the IE instance? > > > > > > -Original Message-

Re: [Wtr-general] Watir and code page checks

2006-09-15 Thread Charley Baker
Here's a quick way to get the character set from the meta tags: ie = IE.start('http://www.yahoo.com') meta = ie.document.getElementsByTagName( 'meta' ).item(0) content = meta.getAttribute('content') content.strip! content =~ /[\w+\/]\s*;\s*([\w=\-\s]+)$/ charset = $1.split(

Re: [Wtr-general] Do you want Watir to be more popular?

2006-09-15 Thread Paul Carvalho
On 15/09/06, Bret Pettichord <[EMAIL PROTECTED]> wrote: A couple of recent posts were premised on the assumption that we wantWatir to be more popular? Do we? Why?I say 'yes', we do want it to be more popular.  Here's my reason why.I first started out in this industry as a programmer for several yea

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread brian . kejser
Hey In that case, how do I fetch a ModelDialog instance of the popup after calling click_no_wait on the IE instance? -Original Message- From: "Charley Baker" <[EMAIL PROTECTED]> Sent: Fri, September 15, 2006 7:25 To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] watir-1.5.1.108

Re: [Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread Charley Baker
You've pretty much answered your own question - only null and :title methods are supported. modal = ie.modal_dialog # or use the :title location method to find by title modal.close Look at modal_dialog_test.rb in the unit tests if you need more information and examples. -Charley On 9/15/06, [

Re: [Wtr-general] Do you want Watir to be more popular?

2006-09-15 Thread Jim Hollcraft
Googling 'define:popular' - regarded with great favor, approval, or affection especially by the general public - Widely used term, literally meaning ‘of the people’. Negatively, in contrast to ‘high culture’, ‘art’, etc. and as synonymous with ‘mass’ So there could be a popular web testing tec

[Wtr-general] javascript functions

2006-09-15 Thread Luke
I have _javascript_ functions defined on the page, how can I access to it from watir? can some one show me the examplethnxLuke ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method

2006-09-15 Thread Jason Alexander
Title: Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method Thanks for everyone’s help! Actually, I found a workaround of sorts - In my tests, I would grab a div and assign it to a variable and use that variable throughout. The problem was, during the operations after the var ass

[Wtr-general] watir-1.5.1.1081.gem and popups

2006-09-15 Thread brian . kejser
Hi Could some please explain how to find and close a modal dialog using watir-1.5.1.1081.gem. When I try to find the dialog using the line 'ie2 = ie.modal_dialog(:hwnd, hwnd) ' ruby returns the error 'Only null and :title methods are supported (ArgumentError)' Thanks _

[Wtr-general] Watir and code page checks

2006-09-15 Thread polleu
Hi, I was wondering if there is any way of verifying specific codepage usage of a web application (i.e. ISO-8859 instead of UTF-8) using Watir? Ulrike ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-gen

Re: [Wtr-general] Do you want Watir to be more popular?

2006-09-15 Thread Richard Conroy
On 9/15/06, Bret Pettichord <[EMAIL PROTECTED]> wrote: > A couple of recent posts were premised on the assumption that we want > Watir to be more popular? Do we? Why? It seems like a dumb question. Of course we do? I can't think of any positive reason why you wouldn't want that to be so. I could

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method

2006-09-15 Thread Angrez Singh
Hi Bret,I agree that the bug was related to 'to_s' method but this method internally calls 'text' method which was the source of error that I have logged.Thanks for pointing to the URL on 'openqa'.Regards, AngrezOn 9/15/06, Bret Pettichord <[EMAIL PROTECTED]> wrote: Angrez,I'm pretty sure that the

[Wtr-general] Do you want Watir to be more popular?

2006-09-15 Thread Bret Pettichord
A couple of recent posts were premised on the assumption that we want Watir to be more popular? Do we? Why? It got me started on a long post describing my own goals, which needs more time. In the mean time, i thought i would ask the question to the group. Bret _

Re: [Wtr-general] using Watir for single-user performance testing

2006-09-15 Thread Bret Pettichord
Danny R. Faught wrote: > I briefly mentioned how I've been using Watir in a blog post today - "The > Jury’s Still Out on OpenSTA" (http://tejasconsulting.com/blog/?p=74). > > I'd be glad to elaborate on Watir's role in the toolchain, and discuss the > necessity of using a browser-based test tool

Re: [Wtr-general] Promoting Watir

2006-09-15 Thread Bret Pettichord
On 9/15/06, Zeljko Filipin <[EMAIL PROTECTED]> wrote: Why not just redirect from wtr.rubyforge.org to openqa.org/watir/? Then you will have to maintain only one site. Or change wtr.rubyforge.org to "we have moved..."? Also, can something similar be made with http://rubyforge.org/projects/wtr/?

Re: [Wtr-general] JavaScript created Divs - Access

2006-09-15 Thread Zeljko Filipin
Hi Michael,ie.div(:id, 'menuItem0').fire_event('onmouseover') should work, but it does not.Could it be that your _javascript_ (or something else) is corrupted?Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listi

Re: [Wtr-general] WIN32OLERuntimeError: unknown property or method

2006-09-15 Thread Bret Pettichord
Angrez, I'm pretty sure that the bug you cite only affected the "to_s" method and not the "text" method. I don't think it relates to Jason's issue. We've migrated all the defects to Jira. Here is the current reference: http://jira.openqa.org/browse/WTR-33 Bret Angrez Singh wrote: > Hi Jason,

Re: [Wtr-general] Promoting Watir

2006-09-15 Thread Zeljko Filipin
Why not just redirect from wtr.rubyforge.org to openqa.org/watir/? Then you will have to maintain only one site. Or change wtr.rubyforge.org to "we have moved..."? Also, can something similar be made with http://rubyforge.org/projects/wtr/? Is there a reason for maintaining two sites?Zeljko _

Re: [Wtr-general] Paramatrization of the data in WATIR

2006-09-15 Thread Raghu Venkataramana
Title: Paramatrization of the data in WATIR Can you elloborate, "WET doesn't support full text on the page?" WET is built as an addon to Watir - So it should support everything that Watir(Ver 1.4) supports. Regards, Raghu Venkataramana Director Qantom Software Private Limited 72/1B, 2nd Fl

Re: [Wtr-general] Paramatrization of the data in WATIR

2006-09-15 Thread Angrez Singh
Hi Sanjay,Have a look at this link which tells how you can use excel object in Ruby.http://www.rubycentral.com/book/win32.html- Angrez On 9/15/06, Sanjay kumar Rai <[EMAIL PROTECTED]> wrote: Hi, We are using watir in our project, and we want to do the Parameterization for few things in

[Wtr-general] Paramatrization of the data in WATIR

2006-09-15 Thread Sanjay kumar Rai
Title: Paramatrization of the data in WATIR Hi, We are using watir in our project, and we want to do the Parameterization for few things in the script using excel sheet, if possible then can anyone share there code or the procedure to how to do the Parameterization using the excel sheet. Ea