CSS 回归测试工具 WebdriverCSS

码农软件 · 软件分类 · GUI 测试工具 · 2019-11-26 12:27:54

软件介绍

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();

本文地址:https://codercto.com/soft/d/19830.html

Beautiful Code

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》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具