Class: Webdrone::Exec
- Inherits:
-
Object
- Object
- Webdrone::Exec
- Defined in:
- lib/webdrone/exec.rb
Instance Attribute Summary collapse
-
#a0 ⇒ Object
Returns the value of attribute a0.
Instance Method Summary collapse
-
#initialize(a0) ⇒ Exec
constructor
A new instance of Exec.
- #script(script, *more) ⇒ Object
Constructor Details
#initialize(a0) ⇒ Exec
Returns a new instance of Exec.
11 12 13 |
# File 'lib/webdrone/exec.rb', line 11 def initialize(a0) @a0 = a0 end |
Instance Attribute Details
#a0 ⇒ Object
Returns the value of attribute a0.
9 10 11 |
# File 'lib/webdrone/exec.rb', line 9 def a0 @a0 end |
Instance Method Details
#script(script, *more) ⇒ Object
15 16 17 18 19 |
# File 'lib/webdrone/exec.rb', line 15 def script(script, *more) @a0.driver.execute_script(script, *more) rescue => exception Webdrone.report_error(@a0, exception, Kernel.caller_locations) end |