scrapinghub / splash

Lightweight, scriptable browser as a service with an HTTP API
BSD 3-Clause "New" or "Revised" License
4.04k stars 507 forks source link

Splash is not rendering a pure JS page #1144

Open arunjoseph opened 2 years ago

arunjoseph commented 2 years ago

I have used the following LUA code, it appears that it is not loading the page at all even if I increase the delay

function main(splash)
    splash.private_mode_enabled = false
    assert(splash:go(splash.args.url))
    splash:wait(10)
    assert(splash:runjs("document.getElementById('menu-item-expertises').nextSibling.click();"))
    splash:wait(30)
    return {
        html = splash:html(),
        png = splash:png(),
    }
end

I alway get a PNG with an empty page.

The URL in question is the following link https://www.mandarine-gestion.com/

This website is pure VueJS file

anvaari commented 2 years ago

I Think This can solve your problem.