0.1.2 • Published 6 years ago

popform v0.1.2

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

popform

Autopopulate and submit web forms

Usage

npm install --save popform
import popform from 'popform';

const config = [
  {
    delay: 10000, // wait for the page to load
    fields: { // fields to populate
      username: {
        value: 'some-username'
      },
      password: 'some-password' // string assumed to be value
    },
    elements: [ // elements to modify
      {
        query: '.box',
        style: {
          backgroundColor: 'blue'
        }
      }
    ],
    submit: '#submit' // location of submit button
  },
  {
    // Autopopulate second form after first form is submitted
  }
];
  
popform(config).then(() => {
  console.log('Form autopopulated and submitted');
});
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago