HI,

I have following code which fails to recognize the Popup for the first execution, but if I try re-executing my script keeping both the initial browser windows open..it strangely works. Please advice as to where I am going wrong? Here is my code..

require 'watir'
require 'test/unit'
require 'watir/winClicker'


ie = Watir::IE.start("http://www.formsite.com/forms/autoresponder/")
w = WinClicker.new
handle = w.getWindowHandle("Microsoft Internet Explorer")
ie.button(:value, "Submit").click
ie.image(:src, /qbut/).click

ie1 = Watir::IE.attach(:title, "Instructions")


handle = w.getWindowHandle("Microsoft Internet Explorer")
ie1.text_field(:name, "ItemInstructions").clear
ie1.button(:value, "Close").click

ie.close

Thanks,

Vishal

 


 

Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joinus.htm
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to