Switch Between Pages
With browser contexts, all pages are accessible. Use context.pages() to list them and page.bringToFront() to focus a specific page.
Task:
- Create a context with two pages: Buttons and TextFields
- Print how many pages are open
- Bring the first page to front and print its title
- Bring the second page to front and print its title
Expected output:
Open pages: 2 Front page: Buttons Front page: Text Fields
TestKru