Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome: Fill out same form many times for testing

Is there some kind of tool (ideally for Chrome) in which I can fill out a long form that I am designing/testing many times?

I should be able to:

  1. Fill out everything once and save it
  2. Fill in the saved form with one button click
  3. Fill out the form differently and save it as a different "profile"

I'm testing some things manually during development so I don't want a fully automated solution for this (I am using Symfony2.1 so I can write functional tests also). I just need a way to quickly fill out the form so I can save myself some time but I haven't been able to find a good Chrome extension or anything to do it. I remember Firebug in Firefox having something like this I think (I never used it though) so I imagine something exists.

The built in saved forms don't seem to be as useful for this task but maybe I'm missing something.

like image 255
Matt Avatar asked Nov 03 '12 19:11

Matt


People also ask

How do I autofill a form in Chrome?

Open your Chrome browser. Click on the three dots at the top right corner. Go to Settings and find the Autofill section. To add an address, go to Addresses and more > Add, type the address and click Save.

How do I autofill online forms?

Google Chrome AutofillClick Settings and then scroll down the page and click the link “Show advanced settings…” Scroll down until you see the Passwords and Forms section. Click the checkbox by "Enable Autofill to fill out web forms in a single click". To add information click "Manage Autofill settings".

How do you use auto filler?

- Just click on the extension icon on the top right corner of your browser and get values filled. - Learns from your inputs and changes you do in the form. - Fills random values for unrecognised fields.


2 Answers

You can check out iMacros for Chrome:

https://chrome.google.com/webstore/detail/imacros-for-chrome/cplklnmnlbnpmjogncfgfijoopmnlemp

like image 176
Emyl Avatar answered Sep 19 '22 00:09

Emyl


Call it a rudimentary answer, but I believe the button shortcuts in Chrome accept Javascript. I've done this with FireFox by doing something like:

javascript:document.formname.fieldname.value='value';document.formname.fieldname2.value='value';document.formname.fieldname3.value='value';return false; 
like image 33
Nicholas Yost Avatar answered Sep 20 '22 00:09

Nicholas Yost