Class: Playwright::Execution

Inherits:
Object
  • Object
show all
Defined in:
lib/playwright.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#browserObject (readonly)

Returns the value of attribute browser.



51
52
53
# File 'lib/playwright.rb', line 51

def browser
  @browser
end

#playwrightObject (readonly)

Returns the value of attribute playwright.



51
52
53
# File 'lib/playwright.rb', line 51

def playwright
  @playwright
end

Instance Method Details

#stopObject



46
47
48
49
# File 'lib/playwright.rb', line 46

def stop
  @browser&.close
  @connection.stop
end