Here is the code snippet I'm working with:
driver = new HtmlUnitDriver();
((HtmlUnitDriver) driver).setJavascriptEnabled(true);
baseUrl = "http://www.url.com/";
driver.get(baseUrl + "/");
...
However, whenever I try to run it, I encounter this exception:
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "match" of undefined (http://www.url.com//javascript/jquery.ceebox/jquery.swfobject.js#2)
Is there a solution to this issue? Any suggestions or fixes?