[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

problem in popup handling

Karthic Ganesan

7/28/2008 4:05:00 PM

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

1 Answer

Yt Hu

9/10/2008 12:13:00 AM

0

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

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