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

117
Vistas
To automate upload functionality using selenium for an upload container

Thanks for stopping by. I have an class="btn-file secondaryBtn mUpload" tag in an DOM and that is the "Browse" functionality on click is does sum implementation and opens windows file explorer.

Before uploading file: this is how the upload field look like <td id="td_file_0"> </td>

Now after clicking the browse button and selecting a test doc and clicking ok it looks like this

<td id="td_file_0">
    <p class="doc">
      <a class="anchorDocView" href="#" data-file="b.JPG</a> 
    <span class="deleteLink" data-id="350277" onclick="comJs.de('b2.JPG','file_0',this)">
      <i class="material-icons delete">close</i></span></p></td>

So here is what I am trying to do.

I do not want to use robot class because I will be automating this in browserstack. I tried sendkeys to td_file_0 but it wont work and it make sense because the doc attaching field is generated dynamically after selecting the doc.

Any other ways that this can be automated ?

Thanks

about 4 years ago · Juan Pablo Isaza
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