Class: Webdrone::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/webdrone/logg.rb,
lib/webdrone/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a0) ⇒ Text

Returns a new instance of Text.



13
14
15
# File 'lib/webdrone/text.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/text.rb', line 11

def a0
  @a0
end

Instance Method Details

#page_titleObject



36
37
38
39
40
# File 'lib/webdrone/text.rb', line 36

def page_title
  @a0.driver.title
rescue StandardError => error
  Webdrone.report_error(@a0, error)
end