Mike wrote:
Alas, it won't fix my current problem. I can already view source for this particular window, but it's showing me source for just one of the frames, and not the one I
care about.  Even clicking on the frame I want and then looking at view source
doesn't change anything. This page was written by extremely sharp individuals who I believe were intentionally trying to obfuscate. The page has an unnamed frame,
which I could only get a handle on by doing this:

    $main_frame = $ie.frame("")

Within this frame are other frames.

If you can think of other ways to get at the source of specific frames, please let me
know.  I'll also try AutoIt as a previous poster recommended.


You can try pulling it out of the cache (C:\Documents and Settings\username\Local Settings\Temporary Internet Files).

Or AutoIt can probably do it; I imagine that could potentially be harder than looking for a matching filename in the cache.

P.S. Do you have a good reference for that kind of window scripting, especially IE scripting? Is there a way to banish those annoying splash screens that s-l-o-w
Java applications keep putting up in front of my work?

AutoIt3 does all that really well, although Bret seems to have demonstrated you can use the Windows COM API quite powerfully, too. You can check the MSDN library for info on Shell and other automation objects, including the IE object which is very handy for Watir stuff.

InternetExplorer object (Watier::IE.new.ie or WIN32OLE.new("InternetExplorer.Application") doco is here: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp Remember, too, all WIN32OLE objects have the ole_methods method which exposes all the properties and methods of the object.

The AutoIt docs are here: http://www.autoitscript.com/autoit3/docs/
And in particular its API is here: http://www.autoitscript.com/autoit3/docs/functions.htm

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

Reply via email to