Problem in popup handling

i have to handle the popup in my client page.
this is my program:

ie.button(:name,'BtnSubmit').click_no_wait
dialog = Watir::Dialog.new
dialog.button("OK").click
ie.waitForIE

but i got an error msg like,
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/dialog.rb:38:in
`click': Watir::Exception::UnknownObjectException

Once click on submit button it ll show an
popup msg. i hv to click on click button.

Please advise how to solve this popup issue?

···

--
Posted via http://www.ruby-forum.com/.

Hi
Is this a JS pop up or a modal dialog?
everything is here
http://wiki.openqa.org/display/WTR/Pop+Ups

have fun

Karthic Ganesan wrote:

···

i have to handle the popup in my client page.
this is my program:

ie.button(:name,'BtnSubmit').click_no_wait
dialog = Watir::Dialog.new
dialog.button("OK").click
ie.waitForIE

but i got an error msg like,
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/dialog.rb:38:in
`click': Watir::Exception::UnknownObjectException

Once click on submit button it ll show an
popup msg. i hv to click on click button.

Please advise how to solve this popup issue?

--
Posted via http://www.ruby-forum.com/\.