Class: Webdrone::Exec

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a0) ⇒ Exec

Returns a new instance of Exec.



13
14
15
# File 'lib/webdrone/exec.rb', line 13

def initialize(a0)
  @a0 = a0
end

Instance Attribute Details

#a0Object (readonly)

Returns the value of attribute a0.



11
12
13
# File 'lib/webdrone/exec.rb', line 11

def a0
  @a0
end

Instance Method Details

#script(script, *more) ⇒ Object



17
18
19
20
21
# File 'lib/webdrone/exec.rb', line 17

def script(script, *more)
  @a0.driver.execute_script(script, *more)
rescue StandardError => error
  Webdrone.report_error(@a0, error)
end