Yes, it is possible, but good work. It depends on your purpose.
UISpec- This is a good place to start your search. If you are interested in modeling clicks for testing purposes, you can simply use the library. Otherwise, it will contain a source and pointers to how you can do it yourself.
source
share