Hi, zeljko.
Thanks for the reply.
is that what you mean about open a new window?
ie.link(:href, http://www.google.com ).click
ie2=Watir::IE.attach(url, http://www.google.com;)
then I can use ie2 to drive the new page?
But I find several problems when trying this.
1 ie.link(:href,
Hi,,
I want to click a button using any one of these attribute
class - btn_login_up
onmousedown-
this.className='btn_login_dn'
onmouseup-
this.className='btn_login_up'
type
Try
ie.button(:class, btn_login_up).click
- Angrez
On 7/6/07, Chitta Ranjan [EMAIL PROTECTED] wrote:
Hi,,
I want to click a button using any one of these attribute
class - btn_login_up
onmousedown-
Hi Nathan,
There is FAQ section about this, have you read it?
http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi Jarodzz,
Comments are inline (again).
On 7/6/07, salamond [EMAIL PROTECTED] wrote:
A new popup window is blocked.
Disable all pop-up blockers that you have installed.
Is Watir reading the html/view/source to generate the show_all_objects?
I do not use show_all_objects. As far as I
3 Another question will be igoogle. I add several protelet on my page.
I can't find those links in show_all_objects, but I can use
ie.link(:text, How to of the Day).click to click it.
Is Watir reading the html/view/source to generate the show_all_objects?
No. The method accesses all
Bret Suggested:
I think the error message may be misleading. I think the problem may
actually be caused by the use of frames. Can you show us the code that
is failing?
Certainly. Warts and all here it is:
require 'watir'
require 'win32ole'
include Watir
require 'test/unit'
I haven't got started yet but I was hoping to try this out:
RTH Test Management open source project:
http://sourceforge.net/projects/rth/
RTH also have a library to post watir results into it here
http://www.bhtconsulting.com/gpage2.html
That combination looks a promising
If you don't need the console output to be real-time, perhaps you could use the
following as a launcher script?
IO.sync = true
out_file = File.new('test_output.log', 'w')
ret = `ruby test_main.rb`
$stdout ret
out_file ret
out_file.close
___
Modal dialogs aren't part of a frame, they're generated and owned by ie, so
this line:
ie2.frame(ContentFrame).modal_dialog.text_field(:id,
'FileUploader').set('C:\Users\Public\Pictures\Sample Pictures\Dock.jpg')
should read:
ie2.modal_dialog.text_field(:id,
Tiffany,
If you want to dig a little into the Watir internals, you can do this
easily enough. Find the Watir method(s) that produce the output for the
tests. Then override those methods (just use copy/paste) in your own
custom module of the same name. Then in your copied method, change the
I'd suggest using ci-reporter -
http://rubyforge.org/projects/caldersphere/- for your main test
reporting, though honestly I've got little experience
with it and am still using it's predecessor test-unit report. For your puts
statements why not use ruby's logger or log4r instead? Dump your puts
you can use 'tee' program. It's part of cygwin distribution if you have that
installed.
it can capture everything from the stdout to a file if you pipe it from the
command line.
So when you run a test append | tee somefile.txt to dump your stream in
there.
like so..
promptts_mysuite.rb | tee -a
13 matches
Mail list logo