I'm new to Watir... working on a script to automate some browser screen

One page in particular has this problem that I'm stuck on: the page has a
link that is a javascript link, and the result of the javascript is that it
generates/sends a PDF to be downloaded/saved. So when I use Watir to click
the link, I get the Save As dialog, but I have no idea how to make it
actually click the "OK" button in the Save As dialog. It's not a javascript
window, so the usual javascript dialog/alert methods don't work. Also, as
the link is not a direct link to the PDF, I can't right-click on it to save
it without the dialog.

I tried looking through the source to see if the URL was just hidden, but
it's not... it appears to be generated via some convoluted javascript.

So I'm stuck. I can manually click the link and get the Save As dialog and
manually click the "OK" button (I'm on a mac, using Firefox, if the
matters). But I can't automate it.

Any help?



Before posting, please read http://watir.com/support. In short: search before you ask, be nice.


You received this message because you are subscribed to the Google Groups "Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 6 | next ›
Discussion Overview
groupwatir-general @
postedJan 5, '15 at 8:53a
activeJan 14, '15 at 2:56p



site design / logo © 2022 Grokbase