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

130
Views
Java Script automatic authentification fills in the credentials but it says incomplete

I would like to automatically login to this example website: https://portal.videc.info/. I'm quiet new to Java Script and can't figure the issue. I'm using the following code to write the values of username and password (not the correct ones):

document.getElementsByTagName('input')[0].value=('userid')
document.getElementsByTagName('input')[1].value=('password')
document.getElementsByTagName('button')[3].click()

The values are shown in the input boxes. After the button gets pressed it says error 11 "credentials incomplete". When I manually (via keyboard input) remove the last character ('d') of the username and the password and add it again it's working and I get the error 12 (invalid credentials). I assume that I can't write the values that way. The Website doesn't recognize any input by using the code. Does somebody knows how I can make this work?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Found a solution in this Thread:

const event = new Event('input', { bubbles: true }); 
document.getElementsByTagName('input')[0].value=('userid')
document.getElementsByTagName('input')[0].dispatchEvent(event)
document.getElementsByTagName('input')[1].value=('password')
document.getElementsByTagName('input')[1].dispatchEvent(event)
document.getElementsByTagName('button')[3].click()

Thanks @Dhana D. for the hint with Angular!

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