@ie, you can do:
my_objects_string = @ie.get_all_objects
As a side note, it appears to me that the show_all_objects method
really belongs within "Container" rather than "IE", but that is a
separate matter.
Lonny Eachus
==
Subject:
Thanks, it shows all the objects but my objective is to write a script with list of URLs and then record all the objects in each page to a file automatically because I have 170 pages and it is painful to browse through each page and take the list of objects.Charley Baker <[EMAIL PROTECTED]> wrote:
Thanks, but the in the text file only the value "nil" is recorded and the objects are not getting recorded.Nandan <[EMAIL PROTECTED]> wrote: Is this what you mean?outp = File.open("out.txt", "w") sr = ie.show_all_objectsoutp.puts sroutp.close
Another option is to use the Microsoft Internet Explorer developer toolbar: http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en
It's one of the best ways in ie to view the dom. -CharleyOn 8/7/06, Nandan <[EMAIL PROTECTED]
> wrote:Is this what
Is this what you mean?
outp = File.open("out.txt", "w")
sr = ie.show_all_objects
outp.puts sr
outp.close
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=3375&messageID=9406#9406
___
Hi, I have around 100 files and going one by one file and look for the objects is painful. Is there anyway to write the output of show all objects result into a file? Send instant messages to your online friends http://uk.messenger.yahoo.com ___