Have a question?
Message sent Close
View Categories

First Playwright Program

📄
PlaywrightFirstProgram.spec.ts
// Import Playwright test library
import { test } from '@playwright/test';

// Define a test case with title
test('Launch Application', async ({ page }) => {

  // Step 1: Navigate to the application URL
  await page.goto('https://vinothqaacademy.com/demo-site/');

  // Step 2: Wait for 3 seconds (just to see the page launch during demo)
  await page.waitForTimeout(3000);

  // Step 3: Close the page (browser context auto-closes after test)
  
});