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

180
Views
Inject value Html javaScript EditText field from android webview is getting empty on button click

I am trying to inject value from the android web view in the EditText field after injection, clicking on a button to download a file from android. The value gets empty and the website says to enter a value. I’m able to inject EditField from android on the whole page, So the problem is the last editField getting empty while clicking on the download button. In the background, I can see website is sending an event by clicking on the download button. Once the download button is clicked then one function is triggered and that function reads the value from the event function. If an event is not there then the edit field gets empty and it does not capture the inject value from the edit field. Anyone can help me with this. I tried setting the value in the console from browser and hit download button using the below.

document.querySelector('input[name="edit_field_name"]').value='1212'

document.getElementById(‘btn_name’).click()

when ever Download button click the edit value gets empty. While entering the value manually it’s working perfectly. I need to inject value from code and hit the download button from code using javaScript. Please help with this.

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!