Framework for automating functional tests using webdriver