Try to search your question here, if you can't find : Ask Any Question Now ?

Lua/Splash: Link to next page is not being executed

HomeCategory: stackoverflowLua/Splash: Link to next page is not being executed
Avatarjulie asked 4 months ago

I am trying to write a Lua script to go to the next page of the website:

My script:

    function main(splash, args)
      assert(splash:runjs('document.querySelector(".next a[href]").click()'))
      return {
        html = splash:html(),
        png = splash:png(),
        har = splash:har(),

I tried multiple CSS Selectors which all work in the browser. However the Lua script only returns the first page and doesn’t open the next.

Does anyone have an idea what could be the cause?

Thank you and best regards

1 Answers
Best Answer
AvatarAmit answered 4 months ago
Your Answer

4 + 8 =

Popular Tags

WP Facebook Auto Publish Powered By :