@unocode/automatic-navigator

0.3.0 • Public • Published

UnoCode Automatic Navigator


Navigate and fill forms by writing code.

Instalation

You can install UnoAutomaticNavigator via npm:

npm install --save @unocode/automatic-navigator

Usage

import UnoAB from '@unocode/automatic-navigator';

const nav = new UnoAutomaticNavigator();

(async () => {
  nav.input('.my-input-selector').value('Hello World!');
  await nav.wait(1000);
  nav.button('.my-button').click();
})();

Functions available

import UnoAB from '@unocode/ab';

nav.select('#select').index(1);
nav.select('#select').value('option-3');

nav.input('#input').value('Hello from input!');

nav.radio('#radio.radio-2').checked(true);
nav.radio('#radio.radio-2').checked(false);

nav.checkbox('#checkbox.checkbox-3').checked(true);
nav.checkbox('#checkbox.checkbox-3').checked(false);

nav.element('#div-with-click-event').clicked();
nav.element('a[href="/my-url"]').clicked();

Readme

Keywords

Package Sidebar

Install

npm i @unocode/automatic-navigator

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

6.27 kB

Total Files

4

Last publish

Collaborators

  • jonathandamiani
  • kazzkiq