Simulate a DOM event
by @pixiebrix
Simulate a DOM element event, e.g., click
How to Use
After adding the Simulate DOM Event brick, use the selector input to define what to pull information from, either using the button or by manually entering JQuery. After that choose which event (action) should be simulated, such as clicking or scrolling.
Use Case
- Clicking on parts of the UI that might reveal new UI components
- Sending forms
- Pressing buttons
- Scrolling up or down a page
- Selecting different options in a modal
Inputs
Name | Required | Type | Description |
---|---|---|---|
event |
string
|
||
selector |
string
|
||
isRootAware |
boolean
|
Whether the brick should run in the context of the target element, or document |
Outputs
Name | Required | Type | Description |
---|---|---|---|
No outputs for this brick defined. |
Related tags
@pixiebrix/dom/trigger-event
Version
1.7.16
Created
Aug. 17, 2021
Updated
May 26, 2022