More than 1 year has passed since last update.

しょっちゅう忘れるのでメモ

//ボタン(id="button")をクリック
document.querySelector("#button").dispatchEvent(new Event('click'));
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.