Try
test = browser.document.body.all;
This is how its currently implemented.
For getting HTML source use:
browser.text()
Regards,
Angrez
On 3/30/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
