Method: Playwright::BrowserContext#close

Defined in:
lib/playwright_api/browser_context.rb

#close(reason: nil) ⇒ Object

Closes the browser context. All the pages that belong to the browser context will be closed.

NOTE: The default browser context cannot be closed.



123
124
125
# File 'lib/playwright_api/browser_context.rb', line 123

def close(reason: nil)
  wrap_impl(@impl.close(reason: unwrap_impl(reason)))
end