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

214
Visualizações
Using Javascript to auto fill out web form, but the field automatically update and erase the input

I am attempting to autofill a form on a webpage by making a javascript snippet. Using the .value method will temporarily fill the field, but then the field resets back to unfilled out. In the example picture below I want to fill out the address 1 line and I use the following selector to set the .value to a string "address 1" however after a short amount of time or click the box the input will rest to nothing.

Despite "changing" the value I haven't actually changed the value. The page looks like it runs on node.js so maybe thats why I cant just inject the value.

document.querySelector("body > div.content > div > div > div > div > div.account-frame-content.grid > div.frame-content > div.shipping-form > div.shipping-form__box > form > div.user-shipping-info-form.account > div.user-shipping-info-form__field.address1 > label > div > div > input[type=text]").value = "address 1"

In summary I am looking to change the actual value of the address field so that I do not have to type it and as far as I know with js you cannot do typing such as you can with a webdriver.

enter image description here

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