I am trying to attach Google Print Dialog, to save a web page as PDF however I am not able to select an element on this popup. I need to change the destination from any printer to SAVE AS PDF.
Any help would be greatly appreciated.
I am trying to attach Google Print Dialog, to save a web page as PDF however I am not able to select an element on this popup. I need to change the destination from any printer to SAVE AS PDF.
Any help would be greatly appreciated.
@Palaniyappan @loginerror can you please take a look and let me know an alternative solution to overcome this issue?
Does it help if you change the type of capturing in UiExplorer (or by pressing F4 during capturing)?
Are you using the latest version of the UiAutomation package?
I am using latest version of UiAutomation 19.10.1. I also tried changing capturing in UiExplorer however still not able to select any element in Chrome Print Dialog.
did SEND HOT KEY activity helped us here like use send hot key activity with key like down and enter…and tab key to navigate across the fields
use n number of hot key activity with relevant keys until the bot is able to reach the field we want
Cheers @mrkrunaldoshi
@mrkrunaldoshi
If you do Ctrl+Shift+P it will open the system print dialog instead of the chrome print dialog. You could try with that.
I tried sending hot key and was able to come to destination drop-down as well however I cannot assume no. of printers on client PC or Server. So how do I select “Save as PDF” option from it? Any other suggestion/s?
Usually save as pdf will be there in last I hope
If so try with end key first manually and if that works go for send hot key
@mrkrunaldoshi
That is not the case always, also not a good solution in my opinion. In my system “Save as PDF” is the second last and the last one is “Save to Google Drive”. Thanks @Palaniyappan
@DanielMitchell am using Windows 8 Pro which does not include “Print to PDF” printer, to implement your suggestion, I need to look for 3rd party app like cutePDF or similar. Any other suggestion for me?
Does it help to run Studio as administrator?
try to select save as pdf or other option by using select item or click activity
Thanks
Ashwin S
Hi @AshwinS2,
This is the problem, I am not able to get hold of print dialog for select item or click activity. Can you please take a look and let me know if it works on your end?
No, running Studio as Administrator too, does not help.
Is that field taking any typing input like if we type as save as is it taking us to that option
Or
Is it always that save as pdf is at second bottom position
@mrkrunaldoshi
No, we cannot type anything here.
Save as PDF can be the last or 2nd last option depending on whether we are signed into the Chrome browser.
I am going to install CutePDF for time being and use it with Windows Print Dialog via CTRL + SHIFT + p.
Thanks everyone for your suggestions and taking out time @Palaniyappan @loginerror @DanielMitchell
Thanks for bringing it up. I believe these types of Chrome screens are indeed not supported. Our team will have a look at what is possible there
Any update on this ?
Hi, Any update. Further, does using another browser help?