refactored the way how custom fixtures are applied while clicking on an element