Events when clicking an element (mocked)