0% found this document useful (0 votes)
10 views

start.js

This document contains a TestCafe script for automating a login process on the Deep Thought Education website. It includes a fixture named 'start' that navigates to the login page and a test that inputs a username and password before clicking the login button. The script is structured to facilitate automated testing of the login functionality.

Uploaded by

shahbhumikak
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

start.js

This document contains a TestCafe script for automating a login process on the Deep Thought Education website. It includes a fixture named 'start' that navigates to the login page and a test that inputs a username and password before clicking the login button. The script is structured to facilitate automated testing of the login functionality.

Uploaded by

shahbhumikak
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

import { Selector } from 'testcafe';

fixture('start')
.page('https://dev.deepthought.education/login');

test('My first test', async t => {


// Test code goes here
await t
.typeText('#username', 'Bhumika Shah')
.typeText('#password', 'Deep@thought')
.click('#login');

});

You might also like