|
Prev: [ANN] Slide Show (S9) Gem Now Includes S5 Support (IncludingBuilt-In Gradient Themes)
Next: Slide Show (S9) Gem Now Includes S5 Support (IncludingBuilt-In Gradient Themes)
From: Raveendran Jazzez on 3 Jul 2008 02:54 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 -- Posted via http://www.ruby-forum.com/.
From: Bret Pettichord on 3 Jul 2008 12:20
[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(a)gmail.com> wrote: > 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 |