This package has been deprecated

Author message:

Thi s module is deprecated and is now available at https://www.npmjs.com/package/taiko-lambdatest

lambdatest-taiko

0.0.11 • Public • Published

LambdaTest Taiko

A plugin to run Taiko tests on LambdaTest Platform.

Installation

npm install lambdatest-taiko --save-dev

Usage

const { openBrowser, closeBrowser } = require('lambdatest-taiko');
const { goto } = require('taiko');

describe('Taiko Tests', async () => {
  const capabilities = {
    'browserName': 'Chrome',
    'version': '93.0',
    'platform': 'MacOS Catalina',
    'build': '<Build Name>',
    'name': '<Test Name>',
    'username': '<username>',
    'access_key': '<access_key>',
  };
  
  beforeSuite('Before Test Suite', async () => {
    await openBrowser({
      target: `ws://<remote_host>:<remote_port>/taiko`
    },
        capabilities
    ); // Opens the browser on a remote machine
  });

  afterSuite('After Test Suite', async () => {
    await closeBrowser(); // Will close the browser and the test session
  });

  // Test step for the added taiko spec files
  step('Navigate to <url>', async url => {
    await goto(url)
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i lambdatest-taiko

Weekly Downloads

0

Version

0.0.11

License

ISC

Unpacked Size

6.72 kB

Total Files

5

Last publish

Collaborators

  • lambdatestdev