Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!