Created
February 16, 2026 15:56
-
-
Save pablocattaneo/da36b0ddc86eb352d657e48f4e12e6e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // you can do that using the toBeEnabled method of the object that returns expect method | |
| import { test, expect } from '@playwright/test'; | |
| test('basic test', async ({ page }) => { | |
| await page.goto('https://playwright.dev/'); | |
| const inputName = page.locator("#name") // Select element by id | |
| await expect(inputName).toBeEnabled() | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment