Go to the page with 'Yes' button.
Click 'View Source' in IE.
If you can find something like this: input type=submit value=Yes
then this will click it: ie.button(:value,'Yes').click
If your button is JavaScript pop up, then go here for help:
Hi All,
How can I check popup dialog exist or not
Thank you for help?
Regards,
Hue
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
1) After I do:
ie.file_field(:index,1).set('C:\file.txt')
I get:
Starting win setFileDialog in new process. Setting text C:\file.txt
Starting app: C:/ruby/lib/ruby/site_ruby/1.8/watir/setFileDialog.rb
C:\file.txt
Is there a way to do this without this output?
2) After I do (there is a file
I would also like title support for other html elements (like checkbox).
Zeljko
-Original Message-
From: Zeljko Filipin [mailto:[EMAIL PROTECTED]
Sent: Monday, August 01, 2005 1:26 PM
To: wtr-general@rubyforge.org
Subject: file_field.set
1) After I do:
Title: RE: [Wtr-general] press 'Yes' using Watir
Sorry, I make a mistake. I need to click 'OK' button on the pop-up window.
I've looked at http://rubyforge.org/pipermail/wtr-general/2005-May/001676.html about clearSecurityAlertBox... But I can't find answer for my problem
I have a scheme that doesn't require this code to be in separate ruby files
at all. I've tested it out and it works.
Right now, using this code looks like this:
ie.remote_eval -END
button(:name, 'foo').click
END
dialog.button('Yes').click
I'd appreciate comments on this interface, and the
I'd appreciate comments on this interface, and the names it uses
(remote_eval, dialog).
Are you interested in using Wayne Vucenic' Ruby guitest for this?
(There should be some big public announcements about a Rubyforge
project for this RSN.)
-Chris
Thanks, Tim, for the suggestion. It very helpful!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
1) Look at watir unit tests
2) For searching archives try this in Google:
site:rubyforge.org [Wtr-general] javascript
(instead of javascript you can use anything you think can be usefull)
Zeljko
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
1) In my script A, I have these commands that call a
do_click method:
w = RptFunctions.new
icon = /icon_customize.gif/
w.do_click(icon)
2) In the do_click method, I have this statement which
clicks on an icon (there are 5 possible icons it can click on)
Thanks, Shao. It didnt work either.
I decided to do a CASE statement inside the called routine
and set the icon to the specific one depending on the icon number that I send
in from the calling module.
That seems to work.
___
Wtr-general
Id like to create a Test Plan that contains 2 or more
test cases.
How do I do that? I read the WATIR User Guide p.18/19, and
tried to copy whats there, but nothing got executed.
I have two test cases:
1) login.rb
2) analysis.rb
1) This is the outline of Login.rb:
class TC_Login
This uses an unsupported API.
At 07:55 PM 7/29/2005, Tim Feltham wrote:
ie = IE.new(true) # the true tells it to not open an IE window
ie.attach_init(WindowTitle) # whatever the title of your window is
The correct way is:
ie = IE.attach(:title, WindowTitle)
Tim Feltham wrote:
type irb at the command prompt (without the )
Even better, there is this RubyForge project called 'breakpoint',
http://ruby-breakpoint.rubyforge.org/wiki/wiki.pl?HomePage, which opens
an IRB session inside a running Ruby program. With it, you can do
something like
I discussed this at length last week with Brian Marick.
He claims that you should be able to do ctrl-c in IRB and have it reset,
without losing history etc. This would be useful if you get in a situation
where you have unmatched quotes and parens and the like. He gets this all
the time on his
It's very easy:
# testplan.rb
require 'login.rb'
require 'analysis.rb'
that's it.
At 09:11 PM 8/1/2005, Tuyet Cong-Ton-Nu wrote:
I d like to create a Test Plan that contains 2 or more test cases.
How do I do that? I read the WATIR User Guide p.18/19, and tried to copy
what s there, but
I don't understand this request. Can you show the html that includes the
title for a checkbox? I didn't realize this was possible.
Bret
At 07:26 AM 8/1/2005, Zeljko Filipin wrote:
I would also like title support for other html elements (like checkbox).
Zeljko
-Original Message-
17 matches
Mail list logo