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***