friends i am using selenium webdriver to fetch pagesource in my java desktop application. I am getting problem with only one URL which is "http://www.greenbergdental.com/offices/university" every time I try to get this my current java thread was stuck and whole application was stopped. Please suggest me some solution regarding this I have tried Pagetimeout, Scripttimeout. Note: I can not enable javascript for some reason. so please dont give me suggestions like turn on javascript that I can't.
websiteURL ="http://www.greenbergdental.com/offices/university";
WebDriver htmlUnitDriver = new HtmlUnitDriver();
htmlUnitDriver.manage().timeouts().pageLoadTimeout(15,TimeUnit.SECONDS);
htmlUnitDriver.manage().timeouts().setScriptTimeout(15,TimeUnit.SECONDS);
htmlUnitDriver.get(websiteURL);
String pagesource = htmlUnitDriver.getPageSource();