MachinePublishers / jBrowserDriver

A programmable, embeddable web browser driver compatible with the Selenium WebDriver spec -- headless, WebKit-based, pure Java
Other
809 stars 143 forks source link

JavaScript process error #322

Open topicfun opened 6 years ago

topicfun commented 6 years ago

The source retrieved from JBrowserDriver seems different from the source in the browser.

Retrieve the same days (26) more than once but missing the others days of the month... Tried with InternetExplorerDriver and it's OK.

Code to reproduce:

JBrowserDriver driver = new JBrowserDriver(Settings.builder()
                .logJavascript(true)
                .userAgent(UserAgent.CHROME)
                .ssl("compatible")
                .logTrace(true)
                .javascript(true)
                .ajaxResourceTimeout(20000)
                .ajaxWait(20000)
                .build());
        String START_URL = "https://wizzair.com/hu-hu/jaratok/menetrend/budapest/ibiza#/1/0/1/0/0/2018-06/2018-06";
        driver.get(START_URL);
        log.debug("page: {}", driver.getPageSource());

Need some additional settings?

Thx!