What are the things to consider before selecting the best automation testing tool?

Can anyone please point out some of the things that one should consider before selecting the best automation testing tool.