runJavaScript("var links = document.getElementsByTagName('a'); var link = null; for (var i = 0; i < links.length; i++) { if (links[i].text == 'View File') { link = links[i]; } } var cancelled = false; if (document.createEvent) { var event = document.createEvent('MouseEvents'); event.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); cancelled = !link.dispatchEvent(event); } else if (link.fireEvent) { cancelled = !link.fireEvent('onclick'); } if (!cancelled) { window.location = link.href; }")