webdriverio-boneyard / wdio-sync

A WebdriverIO v4 plugin. Helper module to run WebdriverIO commands synchronously.
http://v4.webdriver.io
MIT License
17 stars 31 forks source link

Assign wrapped command to namespace #14

Closed georgecrawford closed 8 years ago

georgecrawford commented 8 years ago

Example:

        browser.addCommand('george', 'test', function async() {
            console.log('done');
        });

        browser.url('/');
        browser.george.test();

// before:
// TypeError: browser.george.test is not a function

// after:
// done
christian-bromann commented 8 years ago

Good catch :+1: