PDF issue

Hi,
With use application\browser I am opening a PDF.

PDF gives some alerts in sequence 1) Enable features 2)Options - enable javascript 3)Enable features.

When I click on these alerts sometimes it works okay.
Sometimes PDF abruptly shuts down as soon as I click on any of the alert.
Is it UiPath click issue? What can I do as workaround?

It does not shut down if I do it manually.

Thank you,

@A_Learner,

Use the Parallel activity to handle unexpected windows that might pop up and cause the PDF viewer to shut down.

Place the sequence to open PDF in a workflow. Invoke that workflow from one branch of parallel. Make sure to check Isolated property check and use the Element Exists and Click activities on another branch of parallel to close pop-up windows that might interfere with the process.

Try this approach.

Thanks,
Ashok :slight_smile:

Thank you, @ashokkarale
I am handling the alerts as I open PDF. But when I handle alert the PDF shuts down abruptly. This happens sometimes. But sometimes it works.

As a workaround I tried to enable Javascript from the PDF preferences.
But this is causing the type into typing in the wrong place. I have identified the fields with anchors. Still the same.

Thank you,

@A_Learner,

May be bot not giving time to pdf to load properly. Try adjusting delays.

Before Click: Add a small delay (e.g., Delay activity for 500 milliseconds).

After Click: Add another delay to allow the PDF viewer to process the click (e.g., Delay activity for 1 second).

Also check these points as well.

WaitForReady: Set the WaitForReady property to Complete to ensure that UiPath waits for the entire page to load before performing the click.

Simulate Click: Try enabling or disabling the Simulate Click property to see which one works better with your PDF viewer.

SendWindowMessages: Alternatively, try enabling the SendWindowMessages property if Simulate Click doesn’t work.

Thanks,
Ashok :slightly_smiling_face:

1 Like

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