Class: Playwright::APIRequest
- Inherits:
-
PlaywrightApi
- Object
- PlaywrightApi
- Playwright::APIRequest
- Defined in:
- lib/playwright_api/api_request.rb
Overview
Exposes API that can be used for the Web API testing. This class is used for creating APIRequestContext instance which in turn can be used for sending web requests. An instance of this class can be obtained via [‘property: Playwright.request`]. For more information see APIRequestContext.
Instance Method Summary collapse
-
#new_context(baseURL: nil, extraHTTPHeaders: nil, httpCredentials: nil, ignoreHTTPSErrors: nil, proxy: nil, storageState: nil, timeout: nil, userAgent: nil) ⇒ Object
Creates new instances of
APIRequestContext.
Methods inherited from PlaywrightApi
Constructor Details
This class inherits a constructor from Playwright::PlaywrightApi
Instance Method Details
#new_context(baseURL: nil, extraHTTPHeaders: nil, httpCredentials: nil, ignoreHTTPSErrors: nil, proxy: nil, storageState: nil, timeout: nil, userAgent: nil) ⇒ Object
Creates new instances of APIRequestContext.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/playwright_api/api_request.rb', line 8 def new_context( baseURL: nil, extraHTTPHeaders: nil, httpCredentials: nil, ignoreHTTPSErrors: nil, proxy: nil, storageState: nil, timeout: nil, userAgent: nil) raise NotImplementedError.new('new_context is not implemented yet.') end |