roughsoft / taiko-selenoid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


TaikoSelenoidy


Codacy Badge Node.js CI

A plugin to run taiko tests in Selenoid cluster

Installation

npm install taiko-selenoid --save-dev

A plugin to run taiko tests in Selenoid cluster

Usage

Add TAIKO_PLUGIN=taiko-selenoid to your env

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

const assert = require('assert');

describe('Selenoid Tests', async () => {
  beforeEach('Before Launch', async () => {
    await openBrowser(); // return Selenoid Session Id
  });

  afterEach('Close Browser', async () => {
    await closeBrowser(); // Will close the browser and Selenoid Session
  });

  it('Taiko Selenoid Test', async () => {
    await goto('google.com');
    await write('Taiko.js');
  });
});

About


Languages

Language:JavaScript 100.0%