Hi ,

Below is my code for pop window [Error page for  invalid username/pwd]

require 'watir'
include Watir
require 'test/unit'

class TC_article_example < Test::Unit::TestCase
 
  def test_search
    $ie = IE.new
    $ie.goto("http://10.20.1.214/mwp";)
    $ie.text_field(:name, "j_username").set("pickaxe") 
    $ie.text_field(:name, "j_password").set("pickaxe")
    $ie.button(:value, "Log on").click
    $ie1=$ie.attach( :title, /Log On error /i )
    $ie1.button(:value, "close").click
  end

end

When i execute this code in Ruby Interpreter, its syas Started in CMD but after 
clicking LOg On button ,its not identifiying POP up window ,Some body please 
tell me what is the reason for this.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6726&messageID=19342#19342
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to