WebDriver and JavaScript Testing Questions