Is there a way to have Webrecorder/IE library save a image that is on a page
Moderators: JRL, Dorian (MJT support)
Is there a way to have Webrecorder/IE library save a image that is on a page
I want to know is there a function that comes with Webrecorder/IE library to download images that appear on a web page. I know I can do this with the screenshot and save it that way or something to that effect, but that would require the page to be in view. I want to do it with the Webrecorder because then it can actually control the page and do everything it needs to be done in the background while I am still working on my computer without it having to take over my computer. So I want to know can Web Recorder do a Save As, and save the image in the background like it handles all of the other functions? Or can I RegEx the url of the image and have it download the image that way. I can't do it via HTTPREQUEST because the user has to be logged in and on a browser to download the images so it has to be down from the same Internet Explorer session that loaded the pictures.
Also I wanted to know if you IEShowIE does the commands you send to the window continue to function? Or does hiding it pause all internet connections to it until its shown again?
Also I want to know that if I use IECreate to do something like this IECreate>IE[50] will the instance be called 50? so if i do it again IECreate>IE[20] right after that, can i then call either 50 or 20 when i want until its closed? or is it always going to be in order? Can i do IECreate>myownname instead of sticking ith the IE[] theme?
Also I wanted to know if you IEShowIE does the commands you send to the window continue to function? Or does hiding it pause all internet connections to it until its shown again?
Also I want to know that if I use IECreate to do something like this IECreate>IE[50] will the instance be called 50? so if i do it again IECreate>IE[20] right after that, can i then call either 50 or 20 when i want until its closed? or is it always going to be in order? Can i do IECreate>myownname instead of sticking ith the IE[] theme?
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
Anyone have any ideas?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
You would probably have to simulate a right click and Save As on the image. You can probably determine the X,Y position with IEGetTagPos and use that to send a mouse move, rclick and then handle the Save As. Or use Image Recognition to do same.
Alternatively extract the tag/parse the html to find the URL of the image and attempt to retrieve it directly with HTTPRequest. However,as you say, there probably needs to be an active session, so unless the session vars can be passed on the URL or in headers, this may not be possible.
Alternatively extract the tag/parse the html to find the URL of the image and attempt to retrieve it directly with HTTPRequest. However,as you say, there probably needs to be an active session, so unless the session vars can be passed on the URL or in headers, this may not be possible.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
Hi Marcus,
That is my project for now. I want to save the product image of the seller on Amazon. I think the idea of find the position of the object then move mouse and do a save as. But can you give me an example? I am stuck with IEGetTagPos command. If you see the attached picture, I can find the tag of the title but don't know how to find the position of the image.
Please help.
Thanks a lot
![Image]()
That is my project for now. I want to save the product image of the seller on Amazon. I think the idea of find the position of the object then move mouse and do a save as. But can you give me an example? I am stuck with IEGetTagPos command. If you see the attached picture, I can find the tag of the title but don't know how to find the position of the image.
Please help.
Thanks a lot
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
Instead of doing that I would look at extracting the url from the source of the image and then retrieving it and saving to file with HTTPRequest. Should be able to do that with the IE/Edge/Chrome functions.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
And Marcus,Marcus Tettmar wrote: ↑Sat Mar 28, 2020 8:34 amInstead of doing that I would look at extracting the url from the source of the image and then retrieving it and saving to file with HTTPRequest. Should be able to do that with the IE/Edge/Chrome functions.
If I can find the urls of images then how can I save them as images instead of the urls?
Thanks
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
Use the command Marcus referred to, HTTPRequest.nodochau wrote: ↑Sat Mar 28, 2020 6:53 pmAnd Marcus,Marcus Tettmar wrote: ↑Sat Mar 28, 2020 8:34 amInstead of doing that I would look at extracting the url from the source of the image and then retrieving it and saving to file with HTTPRequest. Should be able to do that with the IE/Edge/Chrome functions.
If I can find the urls of images then how can I save them as images instead of the urls?
Thanks
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
I know it but how? Cause I am new with this topic.Grovkillen wrote: ↑Sat Mar 28, 2020 6:54 pmUse the command Marcus referred to, HTTPRequest.nodochau wrote: ↑Sat Mar 28, 2020 6:53 pmAnd Marcus,Marcus Tettmar wrote: ↑Sat Mar 28, 2020 8:34 amInstead of doing that I would look at extracting the url from the source of the image and then retrieving it and saving to file with HTTPRequest. Should be able to do that with the IE/Edge/Chrome functions.
If I can find the urls of images then how can I save them as images instead of the urls?
Thanks
Example I have this link of the image which I found from extracting text : https://m.media-amazon.com/images/I/61L ... 8_ML3_.jpg
Please give me an example...

Re: Is there a way to have Webrecorder/IE library save a image that is on a page
Yes, I got it.nodochau wrote: ↑Sun Mar 29, 2020 6:59 pmI know it but how? Cause I am new with this topic.
Example I have this link of the image which I found from extracting text : https://m.media-amazon.com/images/I/61L ... 8_ML3_.jpg
Please give me an example...![]()
Thanks a lot for your info.
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
Code: Select all
Let>URL=https://m.media-amazon.com/images/I/61L4YoMBDmL._AC_UY218_ML3_.jpg
GoSub>DOWNLOAD_IMAGE,URL,test.jpg
SRT>DOWNLOAD_IMAGE
Let>DOWNLOAD_TO=%DESKTOP_DIR%\%DOWNLOAD_IMAGE_Var_2%
HTTPRequest>DOWNLOAD_IMAGE_Var_1,DOWNLOAD_TO,GET,,,,,,
END>DOWNLOAD_IMAGE
Re: Is there a way to have Webrecorder/IE library save a image that is on a page
Thanks. I got it worked.
Beautiful.
Beautiful.