https://github.com/cundd/scoutomate
https://github.com/cundd/scoutomate
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cundd/scoutomate
- Owner: cundd
- License: mit
- Created: 2014-07-09T12:23:51.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T08:42:17.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T15:11:39.544Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scoutomate
Create a map of CSS selectors and values and let Scoutomate fill in the matching fields or click on elements.
## Usage
First define your data:
```javascript
window.ScoutomateData = {
'[name*="firstName"i]': "Daniel", // Fill in the static input
'[name*="lastName"i]': function (element) {
return `Corn (in field '${element.name}')`;
}, // Fill in the return value
'[name*="payment"][value="VISA"]': "Scoutomate.Actions.click", // Select a radio button
"#my-button": "Scoutomate.Actions.click", // Click the element
};
```
then include the library
```html
```