Class: Webdrone::Open

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a0) ⇒ Open

Returns a new instance of Open.



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

def initialize(a0)
  @a0 = a0
end

Instance Attribute Details

#a0Object

Returns the value of attribute a0.



9
10
11
# File 'lib/webdrone/open.rb', line 9

def a0
  @a0
end

Instance Method Details

#reloadObject



21
22
23
24
25
# File 'lib/webdrone/open.rb', line 21

def reload
  @a0.driver.navigate.refresh
rescue => exception
  Webdrone.report_error(@a0, exception, Kernel.caller_locations)
end

#url(url) ⇒ Object



15
16
17
18
19
# File 'lib/webdrone/open.rb', line 15

def url(url)
  @a0.driver.get url
rescue => exception
  Webdrone.report_error(@a0, exception, Kernel.caller_locations)
end