changes made in webdriver utility class and refactored the code