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?

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 G. 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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs