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
- Host: GitHub
- URL: https://github.com/dimkl/action-selector
- Owner: dimkl
- License: mit
- Created: 2025-02-15T22:57:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T19:19:37.000Z (over 1 year ago)
- Last Synced: 2025-02-16T20:25:47.200Z (over 1 year ago)
- Language: TypeScript
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)}`