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.
40 41 42 43 44 |
# File 'lib/playwright.rb', line 40 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.
51 52 53 |
# File 'lib/playwright.rb', line 51 def browser @browser end |
#playwright ⇒ Object (readonly)
Returns the value of attribute playwright.
51 52 53 |
# File 'lib/playwright.rb', line 51 def playwright @playwright end |
Instance Method Details
#stop ⇒ Object
46 47 48 49 |
# File 'lib/playwright.rb', line 46 def stop @browser&.close @connection.stop end |