1.0.2 • Published 1 year ago

taiko-lambdatest v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Taiko Lambdatest

A plugin to run Taiko tests on LambdaTest Platform.

Installation

npm install taiko-lambdatest --save-dev

Usage

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

describe('Taiko Tests', async () => {
  const capabilities = {
    'browserName': 'Chrome',
    'browserVersion': '93.0',
    'LT:Options': {
      'platform': 'Windows 10',
      'build': '<Build Name>',
      'name': '<Test Name>',
      'user': '<username>',
      'accessKey': '<accessKey>',
      'network': true
    }
  }
  
  beforeScenario('Before Test Suite', async () => {
    await openBrowser({
      target: `ws://<remote_host>:<remote_port>/taiko`
    },
        capabilities
    ); // Opens the browser on a remote machine
  });

  afterScenario('After Test Suite', async (context) => {
    await closeBrowser(context); // 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)
  });
});
1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.10-beta.1

2 years ago

1.0.1-beta.1

2 years ago

0.1.9

2 years ago

0.1.8-beta.1

2 years ago

0.1.7-beta.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago