Need clarification about WIN32OLE.new

  • Thread starter Raveendran Jazzez
  • Start date
R

Raveendran Jazzez

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
http://raveendran.wordpress.com
 
B

Bret Pettichord

[Note: parts of this message were removed to make it a legal post.]

Hi All,

is it possible or not ?

Program:

require "watir"

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



Try this:

$HIDE_IE = true
ie = WATIR::IE.new
ie.goto("http://blahblah.com")


--
Bret Pettichord
CTO, WatirCraft LLC, http://www.watircraft.com
Lead Developer, Watir, http://wtr.rubyforge.org
Blog (Essays), http://www.io.com/~wazmo/blog
MiniBlog (Links), http://feeds.feedburner.com/bretshotlist
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top