npm

taiko-android

0.2.0 • Public • Published


TaikoAndroid


Build Status

Demo Doccou alpha

Installation

npm install taiko-android

Usage

import { openBrowser, closeBrowser, goto, evaluate } from 'taiko';

jest.setTimeout(30000);
beforeEach(async () => {
  await openBrowser();
});

afterEach(async () => {
  await closeBrowser();
});
test('Should open browser and send events', async () => {
  await goto('http://the-internet.herokuapp.com/');
  let version = await evaluate(
    () => navigator.appVersion.match(/.*Chrome\/([0-9.]+)/)[1]
  );
  expect(version.result).toBeTruthy();
});

openBrowser Command

Opens the chrome browser and forwards the host and port to taiko and start using all the taiko API.

openBrowser();

closeBrowser Command

Close chrome browser.

closeBrowser();

Thanks for support

TaikoAndroid

Readme

Keywords

Package Sidebar

Install

npm i taiko-android

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

8.2 kB

Total Files

5

Last publish

Collaborators

  • saikris