0.0.11 • Published 3 years ago

lambdatest-taiko v0.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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)
  });
});
0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago