With this i share some of the code snippet used in automation. Since I have experience automating using Selenium (Java) and Junit Framework, so majorly snippets are for them only.