I'm trying to click a link whose href is javascript code. However, when I call "clickLink", the javascript seems to execute in a new window and the function that's supposed to be called is not in scope.
Here's a gist containing the error -> https://gist.github.com/johnl79/1c4f082516485f20a17b
Additionally, for reference, this is the site I'm working with -> http://www.in.gov/apps/dlgftax/Assessment/AssessmentSearch.aspx
If you fill out any of that form and hit search, a "Download" link comes up. That's the link I'm having the issue with.
Any help is greatly appreciated, let me know if you need any more info.