fix last commit js mistake and change webdriver to selenium