Not the same behavior for a chrome process

Hello everyone,

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.

Chrome settings?

Thank you for your help.
Have a nice day.

Arnaud

@Arnaud_G

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

cheers

Hi @Arnaud_G,

Also can you check if you have enabled “allow access to file urls” in your UiPath web extension in chrome?

If it’s not, follow below steps to enable the same.

  1. Open Chrome Extensions: Navigate to chrome://extensions/ in the Chrome address bar.
  2. Locate the Extension: Find the extension you want to allow access to file URLs for.
  3. Open Extension Details: Click the “Details” button for the extension.
  4. Enable File URL Access: Scroll down and locate the “Allow access to file URLs” option.
  5. Check the Box: Check the box to enable the option.

Regards
Sonali

@sonaliaggarwal47

I tried with your suggestion but it immediately displays the pdf rather than downloading it

@Anil_G

my urls seem to be the same, for now my DEV server is down

@Arnaud_G

Better keep condition if opens then perform those steps else perform direct save

Cheers

Why are you killing chrome.exe? There’s no reason to do that and it might be causing your issue.

@Anil_G I will try your solution as soon as the server is operational again.

1 Like

@postwick ok as soon as possible i’ll try without killing chrome

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.

Thanks anyway for taking the time.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.