Bret and David Schmidt are currently working on accessing popups with frames. As far as I know, not everything is working at this time. This should improve as their code gets debugged and included in a future release. I have seen the issues David has had to wade through to access elements in frames on some popups, and it is not a simple thing at all.

Lonny Eachus
==========


Subject:
Re: [Wtr-general] [question] Accesing images?
From:
"Rodrigo Julian Martin" <[EMAIL PROTECTED]>
Date:
Tue, 23 May 2006 10:36:27 -0300
To:
<[email protected]>
To:
<[email protected]>

Thanks for the answer Lonny, and sorry for that untidy HTML! I’ll download TidyUI…

 

I’m trying to click the image with this:

 

$browser_popup.frame(:name,"responseFrame").div(:id, "DIVImageFile_2").image(:id, "img2").click

 

And the output shows:

 

c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:856:in `getImage': undefined local variable or method `document' for #<Watir::Div:0x3333558> (NameError)

            from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2690:in `initialize'

            from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:608:in `new'

            from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:608:in `image'

            from subir_fotos:27

 

 

Or directly with this sentence…

$browser_popup.image(:id,"img2").click

 

That sentence doesn’t throw any error, but it doesn’t click the image as the popup that should appear doesn’t….

 

Any help would be really appreciated..

Thanks in Advance!

 

Rodrigo Julian Martin

 

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to