trigger
Functions
Function
Description
Example
Description
Usage Examples
Trigger Click
// Click an element
const button = document.getElementById('submit');
dphelper.trigger.click(button);
// Click first element in collection
const links = document.querySelectorAll('.nav-link');
if (links.length > 0) {
dphelper.trigger.click(links[0]);
}Trigger Change
Trigger Input
Form Automation
Details
Last updated