Autocomplete for forms

Asked

Viewed 290 times

2

Do you know of any web tools in Chrome or Firefox that auto-complete forms with random text for testing? I have a form of 35 fields and each time I submit for tests, I have to complete it again.

  • 1

    Assemble the completed form to test, and strip before publishing... <input type="text" name="nome" value="Fulano de Tal"> or makes a function that creates a random string, or takes a value from an array...

  • Well remembered, I can leave the values set so you don’t have to fill all the time @Jader. You could elaborate a response with possible solutions, so I would give the best answer. Thank you.

2 answers

4

3


Using jQuery to do a small function to fill all inputs when the page is ready:

<script>        
$(document).ready( function() { 
   $("input").each(function(){ // percorre todos elementos "input" do documento
        $(this).val("textoQualquerSoParaTestes"); // atribui o valor genérico para os campos
   });
});
</script>

Unless you have to use values specific, this should serve.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.