Fixed incorrect use of WebDriver methods