Hi, sorry, I actually did enclose in those quotes. I just forgot to
type them in for the example above.

Thanks!

On Nov 30, 5:31 pm, orde <ohil...@gmail.com> wrote:
> I think the argument of the save method should be enclosed in double-
> quotes:
>
> browser.image(:index,1).save("c:\\test\\image.jpg")
>
> Hope that helps.
>
> orde
>
> On Nov 30, 2:15 pm, xguarder <shams...@gmail.com> wrote:
>
> > Hello, I am trying to save an image using the following:
>
> > $ie.image(:index,1).save(c:\\test\\image.jpg)
>
> > The image does get saved. However, I get the following (in irb)...
>
> > WIN32OLERuntimeError: GoBack
> >     OLE error code:80004005 in <Unknown>
> >       <No Description>
> >     HRESULT error code:0x80020009
> >       Exception occurred.
> >         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-
> > class.rb:36
> > 2:in `method_missing'
> >         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-
> > class.rb:36
> > 2:in `back'
> >         from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
> > image.rb:119:i
> > n `save'
> >         from (irb):8
>
> > Any suggestions as to how to work around this? When running the above
> > method in my script, it causes the whole script to abort after saving
> > the image.
>
> > Thanks in advance!

-- 
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