Home > Enterprise >  PowerShell :: click on href="javascript:;" and download document
PowerShell :: click on href="javascript:;" and download document

Time:09-18

I'm writing a script in PowerShell that can allows me to login into this enter image description here

That link doesn't has a Tag or an ID therefore I cannot click on it. Even if I click on it then the browser will ask to save and I don't know how to proceed.

You can create an account and login to that page if you want to inspect by yourself.

Any help will be much appreciated.

CodePudding user response:

The workaround was to search in the page for the text and click on it:

$link = $ie.Document.getElementsByTagName('A') | where-object {$_.innerText -like 'post_adressdaten*'}
$link.click()

This the whole

  • Related