Rayrun
← Back to Discord Forum

one browser with new contexts or with new pages ?

if i'm using playwright for something & i need to run pages in threads What is less loading, opening a new page or opening a new context for each thread , or open new browser ?

This thread is trying to answer question "Not applicable"

2 replies

not new browser. If you need different settings (device, viewport etc.) use context, otherwise use page. It is like the equivalent of opening a new window (context) and new tab (page)

@tallyb: i'll use the same settings for all threads

i'll use the same settings for all threads

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].