My guess is that you could attach to the embedded browser if you can get a
handle to the ie instance and then attach to the handle using
ie.attach(:hwnd, handle). You may be able to get a handle by navigating
through windows, simalarly to the way it's set up in Watir by using
Shell.Application, iterating through windows and finding a window that
matches either your title, url or class name. Check out each on class IE for
an example.

I haven't done this before but that would be the general tack I'd take.
There are likely better ways, but that'd be my first route. Otherwise you
could find the window with Winclicker based on the title and class and pump
that into ie.attach or find the child window that's serving the content and
use that. Not having done it this is where I'd start and poking around on
msdn, there are some good articles on hosting a browser control which might
prove useful. Codeproject also has some examples of that.

win32ole_pp has been of help to me here and there for getting better
insight into the ole objects and supported methods.

-Charley

On 7/5/07, Lonny Eachus <[EMAIL PROTECTED]> wrote:

I am trying again:

Does anybody know anything about getting the DOM or attaching with Watir
when the IE browser is embedded in an application, such as with
Microsoft smartclient?  When the application in question is running, it
is obviously just a wrapper around IE and it displays the same web pages
I find on the main site via my regular browser. But soon some of those
pages may be made inaccessible except through this "client" application.

I already have a lot of automation written for this site. It could be a
lifesaver if I could just find a way to attach to the embedded DOM.

This is important. I could really use any help or ideas that are out
there.

Lonny Eachus

============
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to