Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Need clarification about WIN32OLE.new
Raveendran Jazzez
7/3/2008 6:55:00 AM
Hi All,
is it possible or not ?
Program:
require "watir"
ie = WATIR::IE.new
ie.visible=false
ie.goto("
http://blahblah...
)
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.wor...
--
Posted via
http://www.ruby-...
.
2 Answers
Bret Pettichord
7/3/2008 4:20:00 PM
0
[Note: parts of this message were removed to make it a legal post.]
On Thu, Jul 3, 2008 at 1:54 AM, Raveendran Jazzez <jazzezravi@gmail.com>
wrote:
> Hi All,
>
> is it possible or not ?
>
> Program:
>
> require "watir"
>
> ie = WATIR::IE.new
> ie.visible=false
> ie.goto("
http://blahblah...
)
Try this:
$HIDE_IE = true
> ie = WATIR::IE.new
> ie.goto("
http://blahblah...
)
>
--
Bret Pettichord
CTO, WatirCraft LLC,
http://www.wati...
Lead Developer, Watir,
http://wtr.rub...
Blog (Essays),
http://www.io.com/~...
MiniBlog (Links),
http://feeds.feedburner.com/br...
Raveendran Jazzez
8/5/2008 11:28:00 AM
0
Bret Pettichord wrote:
> On Thu, Jul 3, 2008 at 1:54 AM, Raveendran Jazzez <jazzezravi@gmail.com>
> wrote:
>
>> ie.goto("
http://blahblah...
)
> 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,
http://raveendran.wor...
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Need clarification about WIN32OLE.new
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password