I can't click on "Save" button in Print Dialog Box

Hello all,

I’m fairly new in UI StudioX. Currently I’m trying to create an automation task to download a PDF from a website. However, I can’t click on the save button. Seems that UI can’t detect the dialog print box. Would appreciate any guidance for this issue. Thanks in advance!

@reuban_rao

Please share the screenshot of current approch you are using.

You can use keyboard shortcuts for saving it like explained in this thread

Hi @reuban_rao

you can use keyboard shortcuts ctrl+s and type the file name there and enter

Cheers

hii @reuban_rao

the simplest fix is to use keyboard shortcuts: send Ctrl+P to open the print dialog wait a momentthen send Enter to save.

another easy option is to turn on Download PDFs instead of opening them in your browser so the file saves automatically without using the print dialog

@reuban_rao

Welcome to the community

try to use a separate use application/browser activity for the window and then inside that try to indicate save

cheers

Hello @ashokkarale ,

Thank you for your reply. Sure the sceenshot is as below. I try to invoke “Enter” key using Type Into but nothing happens. This is similar using “Keyboard Shortcut” to invoke “Ctrl+P” or “Enter”.

Can you verify input method, Set SendWindowMessages = True, and then try running again.

Also, you can try send hotkeys or keyboard shortcut activities and give a try..

Hello ,
Welcome to community @reuban_rao , Did you tried capturing elements using different modes , (AA,UIA,default) ?
i think you can try with hotkeys , if selectors are failing.
cheers !

Hi @reuban_rao

Recommended way for downloading any file from browser. We have to go to browser download settings and turn off the “Ask where to save each file before downloading” option. Then it won’t ask for any popup, when you click on download button in the website it will automatically download in to your downloads folder.

In the Studio, we have to use the Wait for download activity. Here are the clear steps to use this,
→ Drag and drop the wait for download activity and create a variable in the Downloaded file field.
→ Inside the Wait for download activity insert the Click activity and indicate the button which you are using to download.
→ Variable which you have created in wait for download activity holds the local path of the downloaded file.
→ Outside of Wait for download activity drag and drop the Rename file activity to rename the download file to your required name or use the move file activity to move the file from downloads folder to required location.

Check the below image for better understanding,

Hope it helps!!

@reuban_rao

I see you are not using StudioX rather using Studio.

Using Studio there are many options to active this.

One quick would be using a Use application/browser activity and indicate the page. Then use a click activity to indicate the same button. Remember to enable CV selector as backup. This should work.