> 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/hover.md).

# Hover

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

test('dropdown test', async ({ page }) => {
  // Go to the dropdown page
  await page.goto('https://the-internet.herokuapp.com/hovers');

  await page.locator('div.figure').nth(0).hover();
  await expect(page.locator('div.figure').nth(0).locator('h5')).toHaveText('name: user1');
});
```
