Run Sample UI Test
Generate a new test
Let's generate a new test using the sente new
command. "web-gui" should be selected as Test Type

Edit and Run Test File
Open the test file with your preferred code editor.
Let's develop the following test steps.
OPEN "https://www.npmjs.com/"
SEARCH "sentieio "
VALIDATE page
Write test script
// OPEN "https://www.npmjs.com/"
await go('https://www.npmjs.com/');
// SEARCH "senteio "
await write('//input[@type="search"]', ['senteio',keyboard.ENTER]);
// WAIT 3 seconds for search result
await wait(3);
// VALIDATE page
await see('//*[contains(text(),"Sente")]')

To run the test, use the command
sente ./tests/sample2.js
Connect to http://localhost:7901 and watch test flow.
Last updated