TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PhantomJS, Selenium, and Django: Headless Browser Testing for the Rest of Us

67 点作者 croby超过 11 年前

6 条评论

cmwelsh超过 11 年前
For Firefox support, there is SlimerJS, a PhantomJS alternative that is coming along very nicely for testing your websites on the Gecko rendering engine. It even supports WebGL. Try it as an alternative CasperJS engine:<p><a href="http://casperjs.org/" rel="nofollow">http:&#x2F;&#x2F;casperjs.org&#x2F;</a>
ed_blackburn超过 11 年前
Two questions from a none Python developer.<p>- If there are no Python bindings, could one invoke native bindings from with Python? - Is it normal to add a base class for utility rather than use a field level instance?<p>Yours, curiously.
Stal3r超过 11 年前
We tried phantomjs for a while but it was very unstable (regularly crashed and since it&#x27;s open source, bug reports often go ignored, even with stack traces), undocumented behavior, and fairly unusual ecosystem. I believe phantom made a fundamental mistake of not being nodejs based in the first place. Phantom has some really nice features though, like being able to read the console output. Selenium is kind of a joke in terms of features, but at least it&#x27;s stable. I would choose selenium unless you get a specific benefit out of phantomjs.
评论 #6919908 未加载
tthomas48超过 11 年前
Selenium is awesome. I&#x27;m using it in Java and PHP. I had a run in with it in its 1.x days and it was too unreliable to maintain the tests. Now it&#x27;s fantastic.
评论 #6918416 未加载
vezzy-fnord超过 11 年前
Easiest acceptance testing framework I&#x27;ve used is Splinter. It&#x27;s an abstraction layer over Selenium that practically makes writing tests similar to plain English: <a href="http://splinter.cobrateam.info/" rel="nofollow">http:&#x2F;&#x2F;splinter.cobrateam.info&#x2F;</a>
评论 #6918582 未加载
评论 #6919012 未加载
评论 #6919169 未加载
评论 #6918024 未加载
jsnk超过 11 年前
PhantomJS is awesome for speed, but I noticed that it sometimes doesn&#x27;t render iframe elements, ajaxed elements properly while using just Firefox does render all elements correctly.
评论 #6918483 未加载