Emily Bi (EJbi3752)

EJbi3752 Member since 2015 3 posts
Posted: September 23, 2016
Last activity: October 4, 2016
Posted: 23 Sep 2016 11:22 EDT
Last activity: 4 Oct 2016 14:48 EDT

OpenSpan Robotics - Working with PDF that opens in new tab

I'm working on a solution that allows me to loop through search terms from a dataGrid and perform the following for each search term:

search > go to first result > click on a link that loads up a PDF document > download pdf document > repeat

Right now the PDF document will open up in a new tab and then I save it from there. I was hoping to close the tab each time after saving by using SendKeys ctrl+W to close the tab, but haven't had luck with that due to the various controls involved for that PDF tab. Another option I thought about was to open the PDF in a new window and simply close the window after saving. However, I am having trouble with the Navigate (2 parameter) method. Right now I'm using the current page with the link to the pdf to invoke the Navigate method, but it's not launching a new window at all. 

Is it possible to simply right click on the PDF link control and just do a "Save Target As..." as a context menu item? If so, which control should I try to add the context menu for to get those options to show up? 

If theres a better solution overall, I would love to hear it. At the end of the day, I'm just trying to btach download a bunch of documents based on search terms.

***Updated by moderator: Marissa to update categories***

Robotic Process Automation
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.