For UI event simulation