Skip to content

Jodeee/macaca-wd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Macaca WD Client

NPM version Package quality build status Test coverage node version

Macaca WD Client is inspired by admc/wd, according to W3C WebDriver.

Contributors


xudafeng


ziczhu


zhangyuheng


paradite


meowtec


snapre


zivyangll


tsj1107


yihuineng


Jodeee


kobe990


centy720


zhuyali

This project follows the git-contributor spec, auto updated at Tue Nov 08 2022 19:40:58 GMT+0800.

Installation

$ npm i macaca-wd --save-dev

Documentation

Usage

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, Playwright
    browserName: 'chrome',   // chromium, firefox, webkit
    app: 'path/to/app',      // Only for mobile
  });
});

after(function() {
  return driver
    .sleep(1000)
    .quit();
});

it('#1 should', function() {

  ...

});

...

Mixin Helper

import wd from 'macaca-wd';
import {
  extendsMixIn,
} from 'macaca-wd/lib/helper'

extendsMixIn(wd)

see more about helper

Extend WD chain

import wd from 'macaca-wd';

wd.addPromiseChainMethod(name, method);

API

Demo

Macaca Getting Started

About

wd.js - Node.js WebDriver Client for Macaca

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.9%
  • HTML 47.1%