I’m using a process that connects to an extranet to retrieve PDFs.
My process connects 5 times in a row with different logins. The list of PDFs is contained in a data table.
I browse the data table and perform a go to URL (urlToPdf).
The problem is as follows:
Login with Username 1
Extracting data from the table to the data table
Extracting PDFs with GoToUrl (UrlToPdf); the GoToUrl causes the PDF to download => normal
Logout
Kill Chrome.exe
Login with Username 2
Extracting data from the table to the data table
Extracting PDFs with GoToUrl (UrlToPdf); the GoToUrl causes the PDF to display, which blocks the rest of my process.
I don’t understand why the process reacts differently between the two subsequent executions.
that depends on the url type..few urls will be with extension and all which will redirect to download few would display and we need to print or download
I found the solution. In fact, I didn’t have to wait for the page to fully load, so the links strangely didn’t work the same way.
To check this, I stopped the process that was reading the PDFs instead of loading them, reloaded the page containing the links, and then restarted the process, and the PDFs were downloaded instead of displayed.
Strange behavior. Is this due to my configuration? No idea.