Re: [Wtr-general] Selecting controls in a dialog box

2007-07-11 Thread Charley Baker
A quick check will tell you if it's a modal dialog. Open ie to the page that launches the dialog. Open irb in a command window. In irb type: require 'watir' ie = Watir::IE.attach(:title, /some part of the ie title/) Launch the dialog. Back in irb type: puts ie.modal_dialog.title If you get a

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-11 Thread Matt Berney
It seems like I am having troubles with Ruby v1.8.5 and the modal_dialog support. Should I roll back to 1.8.2-14? I was reading a post by Bret the other day saying that there may be issues with newer versions of Ruby. I am using: ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32] watir

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-11 Thread Paul Rogers
yes, modal dialogs are only supported using that particular version - Original Message - From: Matt Berney [EMAIL PROTECTED] Date: Wednesday, July 11, 2007 11:09 am Subject: Re: [Wtr-general] Selecting controls in a dialog box To: wtr-general@rubyforge.org It seems like I am having

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-11 Thread Matt Berney
No way!!! It works!!! Uninstalling 1.8.5 and installing 1.8.2-15 worked like a champ!!! This required installing gem watir-1192 as well as installing gem win32-process. But other than that, it works just as advertised... ie = Watir::IE.attach(:url,/ticket.aspx/) ie.button(:name,button).click ==

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-10 Thread Lavanya Lakshman
Step 1: Since it is a dialog box, Attach the focus to this page by using the following: ie = Watir::IE.attach(:title, Web Page Dialog) Step 2: Do a puts ie.show_all_objects This will give the various objects and their identification attributes. Step 3: Based on the above output, perform the

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-10 Thread Paul Rogers
have you looked at the modal_dialog stuff in watir? Ive never used it so cant help you much, but its there. - Original Message - From: Matt Berney [EMAIL PROTECTED] Date: Tuesday, July 10, 2007 12:10 pm Subject: Re: [Wtr-general] Selecting controls in a dialog box To: wtr-general

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-10 Thread Bret Pettichord
Paul Rogers wrote: have you looked at the modal_dialog stuff in watir? Ive never used it so cant help you much, but its there. +1 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Selecting controls in a dialog box

2007-07-09 Thread Matt Berney
When I click a button on the web page, it displays a dialog. Title: Web Page Dialog Controls: * one select list * one text field * two buttons (OK, Cancel) How do I access the dialog box? How do I select an item from the list? Do I use the Watir::IE.select_list.getAllItems() call? How do

Re: [Wtr-general] Selecting controls in a dialog box

2007-07-09 Thread Paul Rogers
: Monday, July 9, 2007 1:17 pm Subject: [Wtr-general] Selecting controls in a dialog box To: wtr-general@rubyforge.org When I click a button on the web page, it displays a dialog. Title: Web Page Dialog Controls:   * one select list   * one text field   * two buttons (OK, Cancel) How do I