components/test/data/autofill/automated_integration/action_recorder_extension/README.md
Action Recorder Extension
An extension that generates Python scripts which automate integration testing through Chrome. It was primarily designed for testing Autofill but is easily portable to other uses.
Usage
- Install the extension into Chrome as an unpacked extension on chrome://extensions (don't forget to turn on “Developer mode” on this page).
- Navigate to the desired start page or use the extension's dropdown menu (next to the omnibox) to go to the next “top 100” site.
- Use the dropdown menu or right-click context menu to start action recording.
- Proceed to click on page elements to navigate through the desired sequence of pages.
- To validate the input field types simply right-click on the inputs and select the appropriate ‘Input Field Type’. Before performing any other actions, right click on the page and select ‘Validate Field Types’.
- Select ‘Stop & Copy’, at which point the test code will be in your clipboard.
- Paste the generated code into the autofill_top_100.py file (components/test/data/password_manager/form_classification_tests).
- Clean up as necessary.
You might also visit arbitrary sites. Just go to a site and start recording there.