Use click() and dispatchEvent()