LoginSignup
12
15

More than 5 years have passed since last update.

特定要素中の特定座標のクリックイベントを発生させる

Posted at

キャンバス系のWebアプリでテスト自動化をする場合にはこういうことをする必要がありました。

var e = new jQuery.Event("click");
e.offsetX = 100;
e.offsetY = 100;
$('#hoge').trigger(e);
12
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
15