Interactive Components
UI patterns that require clicks, hovers, and complex interactions.
Modals / Dialogs
Modal dialogs that overlay the page. Try page.getByRole('dialog')
Accordions
Collapsible sections — only one open at a time. Try page.getByRole('button', { name: /Playwright/ })
Tabs
Tabbed content panels. Try page.getByRole('tab', { name: 'Details' })
Tooltips
Hover and click tooltips. Try hovering or clicking the buttons below.
Drag and Drop
Reorder the list by dragging items. Uses native HTML drag events.
Order: Write test plan, Set up CI pipeline, Create E2E tests, Review pull request, Deploy to staging
Sortable Table
Click column headers to sort. Includes pagination.
| Name ↑ | Role | Status | Experience (yrs) |
|---|---|---|---|
| Alice Johnson | QA Lead | Active | 8 |
| Bob Smith | SDET | Active | 5 |
| Carol White | QA Engineer | On Leave | 3 |
| Dave Brown | Test Manager | Active | 12 |
| Eve Davis | Automation Engineer | Active | 6 |
Page 1 of 3 (12 rows)
Infinite Scroll
Scroll to the bottom to load more items. Uses IntersectionObserver.
Item #1
This is item number 1 in the infinite list.
Item #2
This is item number 2 in the infinite list.
Item #3
This is item number 3 in the infinite list.
Item #4
This is item number 4 in the infinite list.
Item #5
This is item number 5 in the infinite list.
Item #6
This is item number 6 in the infinite list.
Item #7
This is item number 7 in the infinite list.
Item #8
This is item number 8 in the infinite list.
Item #9
This is item number 9 in the infinite list.
Item #10
This is item number 10 in the infinite list.
Scroll down for more
10 items loaded
Hover Dropdown Menu
A dropdown menu that appears on hover. Tricky to automate because you need to hover to reveal the options.