@unocode/automatic-navigator
v0.3.0
Published
Your sample OS project
Downloads
2
Readme
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();