OS = Windows Server 2008 R2 Enterprise
Browser = iMacros Browser
Adobe Acrobat Reader Version = 19.010.20098
Hi friends,
I'm trying to download a PDF file opened in a new tab using the SAVEITEM command but the PDF downloaded are always corrupted. If I manually download the file using the save icon on the Acrobat reader toolbar displayed on the PDF page, then it works well.
I'm stuck on this issue for the last few days. Please help.
Steps involved:
1. Clicking on a link on TAB= 1 to open a PDF
2. WAIT for the PDF to be opened on TAB=3
3. Switches to TAB=3
4. Sets the ONDOWNLOAD command
4. Calls the SAVEITEM command
Code: Select all
SET !TIMEOUT_STEP 20
TAG POS=1 TYPE=A ATTR=TXT:Print<SP>Statement
WAIT SECONDS=5
TAB T=3
ONDOWNLOAD FOLDER=C:\Projects\Statements FILE=Statement.pdf WAIT=YES
SAVEITEM
Code: Select all
SET !TIMEOUT_STEP 20
ONDOWNLOAD FOLDER=C:\Projects\Statements FILE=Statement.pdf WAIT=YES
TAG POS=1 TYPE=A ATTR=TXT:Print<SP>Statement CONTENT=EVENT:SAVETARGETAS