1.0.41 • Published 1 month ago

w-puppeteer-uitest v1.0.41

Weekly downloads
34
License
MIT
Repository
github
Last release
1 month ago

w-puppeteer-uitest

A uitest package for web developer.

language npm version license npm download npm download jsdelivr download

Documentation

To view documentation or get support, visit docs.

Installation

Using npm(ES6 module):

Note: w-puppeteer-uitest is mainly dependent on puppeteer, jimp, lodash-es, wsemi

npm i w-puppeteer-uitest

Example

Link: [dev source code]

import { build, test } from './src/exp.mjs'
import readJson from './src/readJson.mjs'

let fd = 'D:\開源-JS-003-2-w-puppeteer-uitest\w-puppeteer-uitest\' let fd_html = fd + 'test-html\' let fd_action = fd + 'test-action\' let fd_out = fd + 'test-screenshot\'

function readAction(name) { return readJson(fd_action + name + '.action.json') }

let optExp = { headless: true, num_web: 10, ratio_similar: 0.97, // htmlFilter: function(vs) { // console.log(vs) // return vs.filter(function(v) { // return v.indexOf('hover') >= 0 // }) // }, }

//build(fd_html, readAction, fd_out, optExp) test(fd_html, readAction, fd_out, optExp)

1.0.41

1 month ago

1.0.40

2 months ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

3 years ago

1.0.33

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.29

4 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago