> For the complete documentation index, see [llms.txt](https://testingvn.gitbook.io/playwright/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://testingvn.gitbook.io/playwright/implement-test-cases/checkboxes.md).

# Checkboxes

Checkboxes

```typescript
import { test, expect } from '@playwright/test';

test('able to select checkbox 1', async ({ page }) => {
  // Go to the checkboxes page
  await page.goto('https://the-internet.herokuapp.com/checkboxes');

  await page.getByRole('checkbox').nth(0).click();
  await expect(page.getByRole('checkbox').nth(0)).toBeChecked();
});
```
