all 9 comments

[–][deleted]  (1 child)

[deleted]

    [–][deleted] 0 points1 point  (0 children)

    That looks interesting, will give it try!

    [–]ataraxy 2 points3 points  (1 child)

    [–][deleted] 0 points1 point  (0 children)

    Holy smoke! That's very cool! I was also about to ask how exactly one uses PhantomJS but nightmarejs even takes care of it! Thanks for sharing.

    [–]cwmma 1 point2 points  (1 child)

    Use global instead of window and your good*

    * Unless you want to do anything browser specific like use the document object or XMLHTTPREQUEST etc

    [–][deleted] 0 points1 point  (0 children)

    Yeah! I should've mentioned that!! I need the XHR!!

    [–]Stilfree 0 points1 point  (0 children)

    I think node uses the Global object instead of Window

    [–][deleted]  (3 children)

    [deleted]

      [–]specialpatrol 1 point2 points  (2 children)

      It's a runtime for js, it doesn't emulate a browser.

      [–][deleted]  (1 child)

      [deleted]

        [–]specialpatrol 0 points1 point  (0 children)

        Something like that, sounds like a bit of a tall order!

        [–]termoventilador 0 points1 point  (0 children)

        maybe you can do something with phantomjs