Need clarification about WIN32OLE.new

Hi All,

is it possible or not ?

Program:

require “watir”

ie = WATIR::IE.new
ie.visible=false
ie.goto(“http://blahblah.com”)

When i run this program initially

ie = WATIR::IE.new this line creating IE object. So i can able to see
that window.
After that only i can able to invisible the window.

But i want to create new ie window initially invisible mode.

My tries:

I tried to change the watir gem codings

//watir/ie.rb

def create_browser_window
@ie = WIN32OLE.new(‘InternetExplorer.Application’
end

I added a @ie.visible=false after
@ie = WIN32OLE.new(‘InternetExplorer.Application’. but it was not
working. so i decided to add code to WIN32OLE gem or plugin. But i
can’t do it.

So simply my need is,

@ie = WIN32OLE.new(‘InternetExplorer.Application’

want to create a application in invisible mode.

Thank in Advance

Regards,
P.Raveendran

On Thu, Jul 3, 2008 at 1:54 AM, Raveendran J. [email protected]
wrote:

ie.goto(“http://blahblah.com”)
Try this:

$HIDE_IE = true

Bret P. wrote:

On Thu, Jul 3, 2008 at 1:54 AM, Raveendran J. [email protected]
wrote:

ie.goto(“http://blahblah.com”)
Try this:

$HIDE_IE = true

Hi Pettichord.

After a long gap i taken that task and finished it following way…

watir gem/new.rb

replace ie.visible = $HIDE_IE to ie.visible != $HIDE_IE

Thanks
Regards,
P.Raveendran
RF,Chennai,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs