Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline JohnW  
#1 Posted : Tuesday, May 23, 2017 8:51:11 PM(UTC)
JohnW

Rank: Paid support

Joined: 4/27/2016(UTC)
Posts: 6
United States
Location: Georgia, Atlanta

Was thanked: 1 time(s) in 1 post(s)
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!

Edited by moderator Thursday, June 8, 2017 10:44:40 AM(UTC)  | Reason: Not specified

Offline Support  
#2 Posted : Wednesday, May 24, 2017 7:29:02 PM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 10,889

Thanks: 833 times
Was thanked: 414 time(s) in 392 post(s)
To see if this is possible we need a sample web page.
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Offline JohnW  
#3 Posted : Thursday, June 1, 2017 2:34:44 PM(UTC)
JohnW

Rank: Paid support

Joined: 4/27/2016(UTC)
Posts: 6
United States
Location: Georgia, Atlanta

Was thanked: 1 time(s) in 1 post(s)
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!
thanks 1 user thanked JohnW for this useful post.
Support on 6/8/2017(UTC)
Offline HectorA  
#4 Posted : Monday, March 26, 2018 3:58:43 PM(UTC)
HectorA

Rank: Paid support

Joined: 5/12/2017(UTC)
Posts: 4
United States
Location: Florida, New Port Richey

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
Offline JohnW  
#5 Posted : Wednesday, April 4, 2018 3:52:18 PM(UTC)
JohnW

Rank: Paid support

Joined: 4/27/2016(UTC)
Posts: 6
United States
Location: Georgia, Atlanta

Was thanked: 1 time(s) in 1 post(s)
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

Edited by user Wednesday, April 4, 2018 3:53:19 PM(UTC)  | Reason: Not specified

Offline HectorA  
#6 Posted : Wednesday, June 27, 2018 8:13:46 PM(UTC)
HectorA

Rank: Paid support

Joined: 5/12/2017(UTC)
Posts: 4
United States
Location: Florida, New Port Richey

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 13 time(s).
Offline HectorA  
#7 Posted : Tuesday, February 5, 2019 9:00:06 PM(UTC)
HectorA

Rank: Paid support

Joined: 5/12/2017(UTC)
Posts: 4
United States
Location: Florida, New Port Richey

Any news on this request.
TIA
Offline Support  
#8 Posted : Monday, February 25, 2019 10:56:12 AM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 10,889

Thanks: 833 times
Was thanked: 414 time(s) in 392 post(s)
Try to uncheck "Disable web security".
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top