Class: Playwright::ChromiumBrowserContext
- Inherits:
-
BrowserContext
- Object
- PlaywrightApi
- BrowserContext
- Playwright::ChromiumBrowserContext
- Defined in:
- lib/playwright_api/chromium_browser_context.rb
Overview
-
extends: ‘BrowserContext`
Chromium-specific features including background pages, service worker support, etc.
“‘js const backgroundPage = await context.waitForEvent(’backgroundpage’); “‘
Instance Method Summary collapse
-
#background_pages ⇒ Object
All existing background pages in the context.
-
#new_cdp_session(page) ⇒ Object
Returns the newly created session.
-
#service_workers ⇒ Object
All existing service workers in the context.
Methods inherited from BrowserContext
#add_cookies, #add_init_script, #browser, #browser=, #clear_cookies, #clear_permissions, #close, #cookies, #expose_binding, #expose_function, #grant_permissions, #new_page, #options=, #owner_page=, #pages, #route, #set_default_navigation_timeout, #set_default_timeout, #set_extra_http_headers, #set_geolocation, #set_http_credentials, #set_offline, #storage_state, #unroute, #wait_for_event
Methods inherited from PlaywrightApi
Instance Method Details
#background_pages ⇒ Object
All existing background pages in the context.
15 16 17 |
# File 'lib/playwright_api/chromium_browser_context.rb', line 15 def background_pages raise NotImplementedError.new('background_pages is not implemented yet.') end |
#new_cdp_session(page) ⇒ Object
Returns the newly created session.
20 21 22 |
# File 'lib/playwright_api/chromium_browser_context.rb', line 20 def new_cdp_session(page) raise NotImplementedError.new('new_cdp_session is not implemented yet.') end |
#service_workers ⇒ Object
All existing service workers in the context.
25 26 27 |
# File 'lib/playwright_api/chromium_browser_context.rb', line 25 def service_workers raise NotImplementedError.new('service_workers is not implemented yet.') end |