Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

150
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda