- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/webdriverio/webdrivercss
软件介绍
WebdriverCSS CSS 回归测试工具。此插件是用于 WebdriverIO 的自动视觉回归测试工具。灵感来自于 James Cryer 的项目 PhantomCSS 。初始化过后,它可以通过一个额外的 webdrivercss 指令增强 WebdrivercssIO 实例,并且使保存你的应用程序部分截屏成为可能。
示例代码:
var assert = require('assert');
// init Webdri
verIOvar client = require('webdriverio').remote({desiredCapabilities:{browserName: 'chrome'}})
// init WebdriverCSSrequire('webdrivercss').init(client);
client
.init()
.url('http://example.com')
.webdrivercss('startpage',[
{
name: 'header',
elem: '#header'
}, {
name: 'hero',
elem: '//*[@id="hero"]/div[2]'
}
], function(err, res) {
assert.ifError(err);
assert.ok(res.header[0].isWithinMisMatchTolerance);
assert.ok(res.hero[0].isWithinMisMatchTolerance);
})
.end();
Beautiful Code
Greg Wilson、Andy Oram / O'Reilly Media / 2007-7-6 / GBP 35.99
In this unique work, leading computer scientists discuss how they found unusual, carefully designed solutions to difficult problems. This book lets the reader look over the shoulder of major coding an......一起来看看 《Beautiful Code》 这本书的介绍吧!
