added wait to WebDriver