4 ms·
I've been using jquery in node.js for a while now in my tests. This gives me access to the DOM and all of the great stuff that jQuery gives us: @GET "/", (
by philjackson 15y ago
I've been using jquery in node.js for a while now in my tests. This gives me access to the DOM and all of the great stuff that jQuery gives us:
@GET "/", ( err, response ) =>
response.withJquery ( err, $ ) =>
@equal $( "#blah" ).text(), "Something"
Really cool stuff.
- vailripper 15y agoHave you looked into zombie.js (http://zombie.labnotes.org/ http://zombie.labnotes.org/)? It allows for selectors as well, and is a very straight forward headless browser.
- philjackson 15y agoNo, I hadn't. It looks great, I'll certainly check it out properly soon!