refactoring: clickElement()