I'm currently stuck trying to figure out how to download a generated report. I populate a text field and select a drop-down option, then I proceed to click a button which then generates the requested report in a new tab. PA does not allow me to navigate to this tab because it says it is not a valid URL. Any potential solutions that would allow me to interact with this tab and download it when it pops open?
note: the url extension is .do, I'm not sure if that's what part of the issue is
Update: I have now attached the instance by Title which seems to work, but I can't perform any actions with the UI it seems. Is my best option to script saving the webpage in javascript?
Solved! Go to Solution.
You can print that as pdf as mentioned here,
send Ctrl+P to open the print menu and follow that.
If you're working on Edge, try sending keys Ctrl+Tab (switch to next tab shortcut) to navigate to the tab created.
Not sure how to download the report based on your description, if there's a specific button to be clicked on the new tab or it opens with Edge's standard pdf reader. Either way, i believe you can capture the element and click on it to download or, again, check if there's keyboard shortcuts available and then send the right keys.
Can I take a similar approach if I am using a chrome instance?
Worth a test. In Chrome, shortcut is Ctrl + Tab or Ctrl + PgDn
Hi @nc1 ,
have you tried attach the browser window?
if the title is same all time, or if we can build the title using any expressions, then attach running browser will work.
you can try with Title or URL
Attach running instance
Thanks,
Shan KM
This worked for navigating to that tab, thank you! Is it possible to then download this page as a pdf if I am using the chrome browser?
You can print that as pdf as mentioned here,
send Ctrl+P to open the print menu and follow that.
I ended up doing this, then navigating the print menu with key strokes as well. Thanks for your help!
nc