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

149
Vistas
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
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