Upgrade Selenium and phantomjsdriver libraries
Refactoring