Class: Capybara::Playwright::BrowserRunner::PlaywrightConnectToBrowserServer
- Inherits:
-
Object
- Object
- Capybara::Playwright::BrowserRunner::PlaywrightConnectToBrowserServer
- Defined in:
- lib/capybara/playwright/browser_runner.rb
Instance Method Summary collapse
-
#initialize(endpoint_url) ⇒ PlaywrightConnectToBrowserServer
constructor
A new instance of PlaywrightConnectToBrowserServer.
- #playwright_browser ⇒ Object
- #playwright_execution ⇒ Object
Constructor Details
#initialize(endpoint_url) ⇒ PlaywrightConnectToBrowserServer
Returns a new instance of PlaywrightConnectToBrowserServer.
40 41 42 |
# File 'lib/capybara/playwright/browser_runner.rb', line 40 def initialize(endpoint_url) @ws_endpoint = endpoint_url end |
Instance Method Details
#playwright_browser ⇒ Object
48 49 50 |
# File 'lib/capybara/playwright/browser_runner.rb', line 48 def playwright_browser playwright_execution.browser end |
#playwright_execution ⇒ Object
44 45 46 |
# File 'lib/capybara/playwright/browser_runner.rb', line 44 def playwright_execution @playwright_execution ||= ::Playwright.connect_to_browser_server(@ws_endpoint) end |