Class: Playwright::PlaywrightApi
- Inherits:
-
Object
- Object
- Playwright::PlaywrightApi
- Defined in:
- lib/playwright/playwright_api.rb
Direct Known Subclasses
Accessibility, BindingCall, Browser, BrowserContext, BrowserType, CDPSession, ConsoleMessage, Dialog, Download, FileChooser, Frame, JSHandle, Keyboard, Mouse, Page, Playwright, Request, Response, Route, Selectors, Touchscreen, Video, WebSocket, Worker
Defined Under Namespace
Classes: Factory
Class Method Summary collapse
-
.from_channel_owner(channel_owner) ⇒ Object
Wrap ChannelOwner.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(impl) ⇒ PlaywrightApi
constructor
A new instance of PlaywrightApi.
Constructor Details
#initialize(impl) ⇒ PlaywrightApi
Returns a new instance of PlaywrightApi.
56 57 58 |
# File 'lib/playwright/playwright_api.rb', line 56 def initialize(impl) @impl = impl end |
Class Method Details
.from_channel_owner(channel_owner) ⇒ Object
Note:
Intended for internal use only.
Wrap ChannelOwner. Playwright::ChannelOwners::XXXXX will be wrapped as Playwright::XXXXX Playwright::XXXXX is automatically generated by development/generate_api
9 10 11 |
# File 'lib/playwright/playwright_api.rb', line 9 def self.from_channel_owner(channel_owner) Factory.new(channel_owner, 'ChannelOwners').create end |
Instance Method Details
#==(other) ⇒ Object
60 61 62 |
# File 'lib/playwright/playwright_api.rb', line 60 def ==(other) @impl.to_s == other.instance_variable_get(:'@impl').to_s end |