From: Nathan Smith Date: 2007-01-17T06:21:50+09:00 Subject: Re: Attach to running IE instance without watir? ------=_Part_129739_5048881.1168982507310 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/16/07, Geoff Cheshire wrote: > > Hi all, > > I've done the Google thing for several days and I'm hitting a blank. > I'm wondering if there's a way to attach to a running IE process (on > Windows) by using win32ole alone. I can do it with watir, ie = > Watir::IE.attach(:url, url), but I may need to do this on platforms that > don't have watir installed. > > Thanks in advance for any pointers, > Geoff > > -- > Posted via http://www.ruby-forum.com/. > > From looking at the Watir source, it appears that attach calls attach_init, which calls a method called attach_browser_window. That method calls _find. You can look at the implementaion here: http://svn.openqa.org/fisheye/browse/watir/trunk/watir/watir.rb?r=trunk Since you don't want to depend on Watir, it looks like you may need to reimplement some of its functionality. Thanks, Nate ------=_Part_129739_5048881.1168982507310--