Replaced deprecated call with new syntax

ClickElement() is deprecated. Use click() instead.
Merge pull request #136 from Shurakai/func-collapse

Replaced deprecated call with new syntax