TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Start testing your app with Casper.js

52 pointsby moritzplassnigabout 12 years ago

8 comments

lvhabout 12 years ago
(I've made this comment before on CasperJS/PhantomJS postings, but I've never gotten an answer.)<p>I love the idea, but I'm a bit worried that it's just webkit. Aren't all the other browsers important too? This is why I feel that Selenium still has a place, even though I agree that Casper is easier to use. Perhaps browserling is an appropriate answer?<p>I don't mean to disrespect CasperJS <i>or</i> PhantomJS, they're certainly wonderful tools, and any final automated functional test like this is infinitely better than none, but it's bad enough that people are developing for Webkit, do we really have to make it explicit by only testing on Webkit? ;)
评论 #5345510 未加载
评论 #5347870 未加载
评论 #5345504 未加载
chris_engelabout 12 years ago
While the topic is very interesting, I was very disappointed that the examples are written in some minor esotheric language instead of JavaScript.
评论 #5345210 未加载
lvhabout 12 years ago
Given that you're using CoffeeScript, is there a reason you're not using @ instead of this.?
评论 #5346060 未加载
senkoabout 12 years ago
If you're looking to use Casper.js on a Django project, have a look at the small wrapper around LiveServerTestCase we wrote to make it easier to call Casper, pass params (like server url), and the like: <a href="https://github.com/dobarkod/django-casper" rel="nofollow">https://github.com/dobarkod/django-casper</a>
coolsunglassesabout 12 years ago
Casper.js (and Phantom, for that matter) has been pretty buggy and difficult to work with for me. Had better luck with Selenium, which makes me unhappy because I'd rather use something more code oriented.
评论 #5346798 未加载
dandrewsenabout 12 years ago
Casper.js is definitely a great tool, with helpful documentation
MartinMondabout 12 years ago
In case it's not clear, Caspar.js is a framework/library for PhantomJS
DelvarWorldabout 12 years ago
Please don't encourage the use of phantomjs and its wacky ecosystem. It's incredible instability will bite you in the face very soon.
评论 #5345945 未加载