Web Macro - Dynamic Downloads? - VisualCron - Forum

Community forum

JohnW
  •  JohnW
  • Paid support Topic Starter
2017-05-23T18:51:11Z
I am trying to use the Web Macro feature to download a file that is dynamically generated by a webpage. The friendly, client-facing name is the same, but the underlying URL changes each time the file is generated. Based on testing, I can assume that the generated file is deleted within a very short window of when it was generated.

I can successfully use the Web Macro to log in and navigate to the spot where the file normally pops up for download in Chrome, but the download step of the macro just stalls when replaying.

I looked at the criteria for the download step, and it's trying to reference a timestamped URL that the server generated on my first recording of the macro (http://www.example.com/page?rn=/20170523102557004&n=/Filename.xls). I'm guessing the Web Macro is trying to download the destroyed original file (old timestamp) when the newer file (http://www.example.com/page?rn=/20170523142557004&n=/Filename.xls) is being offered by the server.

Is there a way to have the Web Macro just accept any downloadable file content, and not require it to be sourced as a specific name?

The page is hosted on an intranet and full of other code , but I believe the underlying source behind the fun is this:

Quote:

<FORM ACTION="page?rn=/20170523142557004&n=/Filename.xls" ID="printForm" NAME="printForm" METHOD="POST" >



The launch page for the dynamic download would be www.example.com/page 
The resulting refreshed download URL would be www.example.com/page?rn=...7004&n=/Filename.xls 

This problem appears in both 8.2.7 (15611) and 8.2.6 release.

Thanks!
Support
2017-05-24T17:29:02Z
To see if this is possible we need a sample web page.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
JohnW
  •  JohnW
  • Paid support Topic Starter
2017-06-01T12:34:44Z
Unfortunately, the site is currently restricted to within our network.

Thankfully, I was able to navigate around the issue by finding an alternative, more permanent link to use as a basis for downloading.

It is downloading properly now!

If I come across the same behavior from a website "in the wild", I will update this thread to allow further inspection.


Thanks!
HectorA
2018-03-26T13:58:43Z
I too am running into a similar situation.
We generate a report (csv file) from a website every week. Every time we request the report a different file name is generated by the site.
Since the Web Macro keeps the name of the filename at recording, and I am not able to change the filename during execution, I have not been able to automate this download and are having to do this manually.
The Website is WhenToWork.com, an employee time tracking site and your exploration of what we can do in this situation is appreciated.
TIA
Hector
JohnW
  •  JohnW
  • Paid support Topic Starter
2018-04-04T13:52:18Z
Hector,

It looks like WhenToWork.com offers a free read-only peek through their system at a manager and employee access level (https://whentowork.com/testdrive.htm ).

Can you make a test job file that uses the external demo to better show off this issue? We're still successfully using statically-linked workarounds, but having a dynamic option would definitely be superior.

Thanks!

John
HectorA
2018-06-27T18:13:46Z
Hi John
Sorry for the delay.
This need has reappeared, and here is a web macro task that uses the free part of When to Work.
Let me know what you find.
TIA
HectorA
  whentowork.zip (5kb) downloaded 37 time(s).
HectorA
2019-02-05T20:00:06Z
Any news on this request.
TIA
Support
2019-02-25T09:56:12Z
Try to uncheck "Disable web security".
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top