Class: Playwright::AndroidExecution
- Inherits:
-
Object
- Object
- Playwright::AndroidExecution
- Defined in:
- lib/playwright.rb
Instance Attribute Summary collapse
-
#device ⇒ Object
readonly
Returns the value of attribute device.
-
#playwright ⇒ Object
readonly
Returns the value of attribute playwright.
Instance Method Summary collapse
-
#initialize(connection, playwright, device = nil) ⇒ AndroidExecution
constructor
A new instance of AndroidExecution.
- #stop ⇒ Object
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
#device ⇒ Object (readonly)
Returns the value of attribute device.
66 67 68 |
# File 'lib/playwright.rb', line 66 def device @device end |
#playwright ⇒ Object (readonly)
Returns the value of attribute playwright.
66 67 68 |
# File 'lib/playwright.rb', line 66 def playwright @playwright end |
Instance Method Details
#stop ⇒ Object
61 62 63 64 |
# File 'lib/playwright.rb', line 61 def stop @device&.close @connection.stop end |