Should you not be copying the absolute path location of the image file

On Jun 12, 3:44 pm, Encaps <encapsu...@gmail.com> wrote:
> Hello everybody,
>
> I try to save all the images from a webpage following this 
> guide:http://wiki.openqa.org/display/WTR/Save+All+Images+on+a+Webpage
>
> require 'watir'
> browser = Watir::IE.new
> browser.goto('http://twitter.com')
> idx = 0
> browser.images.each do |x|
>   idx += 1
>   location = 'c:\tmp\file-' + idx.to_s + '.jpg'
>   x.save(location)
> end
>
> But the problem is IE ask to save any image, so I should specify
> location,file name, and click "Save".
> How to disable the dialogs to automatically save all the images from a
> batch script?
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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