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 <
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
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 1
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 tit
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
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-g
The default Watir::IE.attach method doesn't seem to work because this is a
dialog. I can use the autoit.WinWait() method to get the window handle. But,
access the controls on the dialog seems elusive. Any help is greatly
appreciated.
irb(main):005:0> d = Watir::IE.attach(:title,/Web Page Dia
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 r
;
Date: 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 fiel
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?
H
10 matches
Mail list logo