I've come across an issue with some simple javascript when working with IE. This issue has happened on both Windows 7 and 8. At first I had the standard issue which has been well described here and I applied the regex fixes that can be downloaded here but the error simply changed from "Unable to get browser" to
Exception in thread "main" org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server did not provide any stacktrace information)
So I thought that something might be wrong with the simple piece of Javascript, but all my Javascript seems to run fine in both firefox and chrome but break down on IE.
This is the simple piece of code I used:
WebDriver dr = new InternetExplorerDriver();
dr.get("https://www.bbc.co.uk");
JavascriptExecutor js = (JavascriptExecutor)dr;
js.executeScript("window.scrollBy(0,150)", "");
Due to the IE Web Driver not providing any stack trace information I have no idea how to actually fix this issue.
And yes my protection levels on IE seem to be in working order. Adding BBC to a list of trusted sites didn't solve the problem either.