Automating functional tests using Selenium and Testng