Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

171
Vistas
PowerShell :: click on href="javascript:;" and download document

I'm writing a script in PowerShell that can allows me to login into this page and download a file.

The login is done, but I now have a new problem: the .zip file I want to download doesn't have a plain text URL but instead is generated by JavaScript. If I inspect the element this is what I see:

<a ng-if="config.fileType.fileType != 'DOCUMENT'" href="javascript:;" data-ng-click="checkForFileAndDownload(getVersionForCurrentLanguage(file.versions))" class="ng-binding ng-scope">post_adressdaten 2021-09-07</a> == $0

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.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

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

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda