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

148
Views
VB.net (Basic) Awesomium - populating input

I'm trying to populate a form with bunch of INPUTS in a VB.NET (basic) windows application. I added Awesomium browser. To populate the input, I inject javascript code loop to find the elements and then: link[i].value = 'the value'.

This works fine on other websites and forms. But this specific website, when clicking submit it acts like nothing is filled out (eventhough you can see the inputs have been filled out). It's like it needs a REAL KEypress. But, I Don't want to use send keys etc because this application must be run minimized.

So I thought maybe ONCHANGE might fix it. For some reason, the SAMPLE code below code works on a normal web browser but in my APP, when applying ONCHANGE using same code it gets an error (no I have no way of getting error message):

<input id='aa' type='text' onchange='alert("IT WORKS")'>
var link = document.querySelectorAll('input');
for (var i= 0; i < link.length;  i++) {
    link[i].value = 'blabla';     // this line works both in browser and in app
    link[i].onchange();           // this line ONLY works in a real browser
    link[i].onkeydown();          // this line ONLY works in a real browser
}

Is there any other way to populate a input TEXT ( and even choose an option inside a SELECT) but as if it's a real person with real keyboard "clicks" ?

Or, does anyone have any idea why my ONCHANGE code above works fine in a normal browser but not in my vb.net Awesomium project?

Thank you so much!!!

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!