'ie' and '$ie' are not the same object.

If you use 'ie', you have to follow what Charley said to get your browser 
maximize.
Otherwise, no help.



----- Original Message ----
From: Isabel <joybe...@gmail.com>
To: Watir General <watir-general@googlegroups.com>
Sent: Tuesday, March 24, 2009 1:13:57 AM
Subject: [wtr-general] Re: Maximizng the Browser


Hi Charley,
I have consistently used "ie" as the handle but still I am getting the
same error.

Is there a replacement to "ie.maximize()"??

On Mar 20, 6:30 am, Charley Baker <charley.ba...@gmail.com> wrote:
> In a few of your recent posts, the code you're using is mixing local
> variables (ie) and global variables ($ie). You need to first understand the
> difference between these two, the Ruby Pickaxe guide has information on
> variable types in Ruby.
>
> ie = Watir::IE.start("http://groups.google.com/group";)
> ie.goto("http://http://groups.google.com/group";)
> ie.maximize()
>
> Charley Baker
> blog:http://blog.charleybaker.org/
> Lead Developer, Watir,http://wtr.rubyforge.org
> QA Architect, Gap Inc Direct
>
> On Fri, Mar 20, 2009 at 1:25 AM, Shweta <nagman...@gmail.com> wrote:
>
> > When i am trying to maximize the ie with the folllowing code am
> > getting this error message can anyone pls guide me where am doing
> > mistake
>
> > ie = Watir::IE.start("http://groups.google.com/group";)
> > ie.goto("http://http://groups.google.com/group";)
> > $ie.maximize()
>
> > am getting the following error message
>
> > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in
> > `initialize': unknown OLE server:
> > `AutoItX3.Control' (WIN32OLERuntimeError)
> >    HRESULT error code:0x800401f3
> >      Invalid class string      from c:/ruby/lib/ruby/gems/1.8/gems/
> > watir-1.6.2/lib/watir/ie.rb:113:in `new'
> >        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
> > 113:in `autoit'
> >        from
> > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> > 425:in `autoit'
> >        from
> > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> > 422:in `set_window_state'
> >        from
> > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> > 398:in `maximize'
>
> > So i used this methtod
>
> > ie.set_window_state :SW_MAXIMIZE
>
> > even though showing some error

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to