I need the source of the url given in the program. But the program returns oly some json data not the entire page source. What's the problem??
public class selenium
{
public static void main(String[] args)
{
selenium.loadPage("http://photos.filmibeat.com/celebs/kajal-aggarwal/photos-c14-e13421-p592995.html");
}
public static void loadPage(String url)
{
WebDriver driver = new FirefoxDriver();
driver.get(url);
String html = driver.getPageSource();
System.out.println(html);
driver.quit();
}
}
