wdio-webmate-service
TypeScript icon, indicating that this package has built-in type declarations

8.0.1 • Public • Published

WebdriverIO webmate Service

This service provides convenient access to webmate for WebdriverIO based test setups.

Installation

To use the webmate wdio service add wdio-webmate-service as a devDependency to your package.json.

{
    "devDependencies": {
        "wdio-webmate-service": "^8.0.1"
    }
}

Configuration

When using webmate wdio service the remote will automatically be configured to https://selenium.webmate.io/wd/hub. This behaviour is disabled when overrideSeleniumEndpoint is set to false explicitly in the service options. The service itself is configured as such:

// wdio.conf.ts
export const config = {
    ...config,
    ...{
        services: [
            ['webmate', {
                email: 'me@example.com',
                apikey: 'THnMXW0GCKsw0qvOJdVhpG75jkjvjUIFqV84If9cSQQ=',
                project: 'e579f289-7538-49f5-be5e-d1149cbda31a',
                slot: '1964999b-19b4-4280-a1df-005ee047011e' // Optional
            }]
        ],
        capabilities: [{
            browserName: 'Chrome',
            browserVersion: '93',
            platformName: 'WINDOWS_10_64'
        }]
    }
}

Using the webmate SDK

The wdio-webmate-service is also capable of automatically creating a webmate SDK client if the webmate-sdk-js module is found on the module path. The webmate SDK client is then available via browser.webmate() which will return a WebmateApiClient object (for Reference please consult the webmate SDK Documentation at https://github.com/webmate-io/webmate-sdk-js).

If you are using Typescript you can add wdio-webmate-service to your types in tsconfig.json so that the Typescript compiler may recognize the browser.webmate() function.

Package Sidebar

Install

npm i wdio-webmate-service

Weekly Downloads

44

Version

8.0.1

License

Apache-2.0

Unpacked Size

21.9 kB

Total Files

13

Last publish

Collaborators

  • aschlosser-tf