An open API service indexing awesome lists of open source software.

https://github.com/dimkl/action-selector

Library that allows triggering element (eg click, focus) or custom actions for a specific selector inside of a DOM element
https://github.com/dimkl/action-selector

Last synced: 2 months ago
JSON representation

Library that allows triggering element (eg click, focus) or custom actions for a specific selector inside of a DOM element

Awesome Lists containing this project

README

          

# action-selector

Library that allows invoking actions (element click / focus or custom) for a specific selector inside of a DOM element

TODO: add more information about project, development

## Test

### Unit tests

TODO

### In Browser

Setup:
- `npm run build`
- `cp test/index.html dist/`
- `npx http-server dist/`

Open `http://localhost:8080/index.html` in browser to check if library is working in a browser environment.

Expectations:
- automatically redirected to `http://localhost:8080/index.html?navigation=...`
- all 3 paragraphs are automatically clicked (can be confirmed with the added `Clicked` text)
- the result of the invoked action is visible in console log as `{success: false, errors: Array(1)}`