Our great sponsors
-
Playwright
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
In order to follow along, you’ll need a free Stripe account which you can sign up for here. You can clone the getting-started branch of this repo in order to have a starter project.
// @ts-check const { test, expect } = require('@playwright/test'); test('homepage has Playwright in title and get started link linking to the intro page', async ({ page }) => { // Load playwright.dev in the browser await page.goto('https://playwright.dev/'); // Expect a title "to contain" a substring. await expect(page).toHaveTitle(/Playwright/); // create a locator const getStarted = page.locator('text=Get Started'); // Expect an attribute "to be strictly equal" to the value. await expect(getStarted).toHaveAttribute('href', '/docs/intro'); // Click the get started link. await getStarted.click(); // Expects the URL to contain intro. await expect(page).toHaveURL(/.*intro/); });