Rayrun
← Back to Discord Forum

Does the page object used in tests close by itself at the end of each test?

As the title mentions, in other words, would I have to run page.close() after each of my tests has completed or is there no need for that?

This thread is trying to answer question "Does the page object used in tests close by itself at the end of each test?"

2 replies

if you use page from Playwright Test and don't create a context yourself Playwright will automatically close it for you.

thx!

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 luc@ray.run.