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.
58 59 60 61 62 |
# File 'lib/playwright.rb', line 58 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.
69 70 71 |
# File 'lib/playwright.rb', line 69 def device @device end |
#playwright ⇒ Object (readonly)
Returns the value of attribute playwright.
69 70 71 |
# File 'lib/playwright.rb', line 69 def playwright @playwright end |
Instance Method Details
#stop ⇒ Object
64 65 66 67 |
# File 'lib/playwright.rb', line 64 def stop @device&.close @connection.stop end |