Class: Playwright::Execution
- Inherits:
-
Object
- Object
- Playwright::Execution
- Defined in:
- lib/playwright.rb
Instance Attribute Summary collapse
-
#browser ⇒ Object
readonly
Returns the value of attribute browser.
-
#playwright ⇒ Object
readonly
Returns the value of attribute playwright.
Instance Method Summary collapse
-
#initialize(connection, playwright, browser = nil) ⇒ Execution
constructor
A new instance of Execution.
- #stop ⇒ Object
Constructor Details
#initialize(connection, playwright, browser = nil) ⇒ Execution
Returns a new instance of Execution.
39 40 41 42 43 |
# File 'lib/playwright.rb', line 39 def initialize(connection, playwright, browser = nil) @connection = connection @playwright = playwright @browser = browser end |
Instance Attribute Details
#browser ⇒ Object (readonly)
Returns the value of attribute browser.
50 51 52 |
# File 'lib/playwright.rb', line 50 def browser @browser end |
#playwright ⇒ Object (readonly)
Returns the value of attribute playwright.
50 51 52 |
# File 'lib/playwright.rb', line 50 def playwright @playwright end |
Instance Method Details
#stop ⇒ Object
45 46 47 48 |
# File 'lib/playwright.rb', line 45 def stop @browser&.close @connection.stop end |