Class: Playwright::AndroidExecution

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, playwright, device = nil) ⇒ AndroidExecution

Returns a new instance of AndroidExecution.



55
56
57
58
59
# File 'lib/playwright.rb', line 55

def initialize(connection, playwright, device = nil)
  @connection = connection
  @playwright = playwright
  @device = device
end

Instance Attribute Details

#deviceObject (readonly)

Returns the value of attribute device.



66
67
68
# File 'lib/playwright.rb', line 66

def device
  @device
end

#playwrightObject (readonly)

Returns the value of attribute playwright.



66
67
68
# File 'lib/playwright.rb', line 66

def playwright
  @playwright
end

Instance Method Details

#stopObject



61
62
63
64
# File 'lib/playwright.rb', line 61

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