Selenium Testing With Java Script Errors