I'm new to Watir and have never used FireWatir, but do you not have to use:

   test = browser.show_all_objects
   p test

I find it useful to experiment using "irb".

Apologies if my advice isn't correct.

Cheers,
Daniel.



On 30/03/06, Rodrigo Julian Martin <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi all!
>
>
>
> I'm trying to get all the objects in a web page using the following code:
>
>
>
> require 'watir'
>
> browser=Watir::Firefox.new
>
> browser.goto("http://www.dolarhoy.com";)
>
> test=browser.document.all
>
> p test
>
>
>
>
>
> With this, test returns as nil.
>
> Is there any function or something like that to return the same as
> document.all in internet explorer?
>
>
>
> Another question, just, in case, is there any way of getting the html source
> code of the page loaded in Firefox
>
>
>
>
>
> Thank you so much
>
> Regards
>
>
>
>
>
> Rodrigo Julian Martin
>
>
>
>
>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>

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

Reply via email to