Skip to content
A plugin to run web tests on android devices and emulator using Taiko
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
apk
images
src
.eslintignore
.eslintrc.js
.gitignore
.npmignore port forward tcp to device and run tests in chrome android browser May 7, 2019
LICENSE
README.md
azure-pipelines.yml
babel.config.js port forward tcp to device and run tests in chrome android browser May 7, 2019
package-lock.json get free port for tcp May 8, 2019
package.json update version for release Jul 3, 2019

README.md


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

You can’t perform that action at this time.