Thanks, Bret for your suggestions. Still some issues though….
Any suggestion is appreciated! I used this command: irb(main):002:0> ie = Watir::IE.new irb(main):004:0* ie.goto("https://qa-b1.test.com/araneae/login") ð 8.547 ð Which worked fine, but then I did this command: irb(main):006:0> ie.form(:name,
"loginForm").submit => 1 A new IE instance was launched and the “Home”
page is displayed (that is what it’s supposed to do) However, now I have 2 instances of IE opened: 1) The first IE
is still opened with the login form 2) The second
IE has the Home page (resulting from clicking on the Login button) What can I do to not launch the second IE? Why did it
launch the second IE? Also, after the goto command was executed, I couldn’t
see any frames at all from the login page. This is before I did the
second command: irb(main):013:0> ie.show_frames there are 0 frames => 0..-1 There should be 2 frames: main and relay as you can see from
my previous posting. Because it can’t recognize “main”, my
script won’t run. For example: irb(main):005:0>
ie.frame("main").text_field(:name,
"UserId").fire_event("onFocus”) Watir::Exception::UnknownFrameException: Unable to locate a
frame with name main from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1832:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:218:in
`new' from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:218:in `frame' |
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general