Macaca WD Client is inspired by admc/wd, according to W3C WebDriver Spec.
xudafeng |
ziczhu |
zhangyuheng |
paradite |
meowtec |
zivyangll |
---|---|---|---|---|---|
tsj1107 |
kobe990 |
centy720 |
zhuyali |
This project follows the git-contributor spec, auto updated at Fri Jul 17 2020 15:03:49 GMT+0800
.
$ npm i macaca-wd --save-dev
var wd = require('macaca-wd');
var remoteConfig = {
host: 'localhost',
port: 3456
};
var driver = wd.promiseChainRemote(remoteConfig);
before(function() {
return driver.init({
platformName: 'desktop', // iOS, Android, Desktop
browserName: 'chrome' // Chrome, Electron
app: path/to/app // Only for mobile
});
});
after(function() {
return driver
.sleep(1000)
.quit();
});
it('#1 should', function() {
...
});
...
import wd from 'macaca-wd';
import {
extendsMixIn,
} from 'macaca-wd/lib/helper'
extendsMixIn(wd)
import wd from 'macaca-wd';
wd.addPromiseChainMethod(name, method);