Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

探索在UI自动化里面使用PhantomJS #31

Open
chenkan opened this issue Feb 21, 2014 · 0 comments
Open

探索在UI自动化里面使用PhantomJS #31

chenkan opened this issue Feb 21, 2014 · 0 comments
Assignees

Comments

@chenkan
Copy link

chenkan commented Feb 21, 2014

Phantomjshttp://phantomjs.org/)是一个基于Javascript驱动的命令行 webkit 引擎,也即无界面的 webkit 浏览器。Phontomjs 加载网页后,提供一系列的 Javascript API 给开发者使用,包括控制DOM元素﹑CSS选择器﹑JSON﹑HTML5的Canvas和SVG;由于其拥有完善的 Javascript 解析、页面渲染功能,完全可用它来模拟一个现代浏览器在加载网页时所做的各种事情,运行速度也相当快。它可以很方便地完成各种自动化测试:页面功能回归、 屏幕截图、网络测试(通过生成HAR)等,即便是需要登录或者用户操作的场景,Phantomjs 也可以轻松完成。在很多轻量级的测试环境下,Phantomjs 正逐渐取代 Selenium。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants