Class: Webdrone::Text

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a0) ⇒ Text

Returns a new instance of Text.



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

def a0
  @a0
end

Instance Method Details

#button(text, n: 1, all: false, visible: true) ⇒ Object



27
28
29
# File 'lib/webdrone/text.rb', line 27

def button(text, n: 1, all: false, visible: true)
  @a0.find.button(text, n: n, all: all, visible: visible).text
end

#css(text) ⇒ Object



19
20
21
# File 'lib/webdrone/text.rb', line 19

def css(text)
  @a0.find.css(text).text
end

#id(text) ⇒ Object



15
16
17
# File 'lib/webdrone/text.rb', line 15

def id(text)
  @a0.find.id(text).text
end


23
24
25
# File 'lib/webdrone/text.rb', line 23

def link(text, n: 1, all: false, visible: true)
  @a0.find.link(text, n: n, all: all, visible: visible).text
end

#on(text, n: 1, all: false, visible: true) ⇒ Object



31
32
33
# File 'lib/webdrone/text.rb', line 31

def on(text, n: 1, all: false, visible: true)
  @a0.find.on(text, n: n, all: all, visible: visible).text
end

#option(text, n: 1, all: false, visible: true) ⇒ Object



35
36
37
# File 'lib/webdrone/text.rb', line 35

def option(text, n: 1, all: false, visible: true)
  @a0.find.option(text, n: n, all: all, visible: visible).text
end

#xpath(text, n: 1, all: false, visible: true) ⇒ Object



39
40
41
# File 'lib/webdrone/text.rb', line 39

def xpath(text, n: 1, all: false, visible: true)
  @a0.find.xpath(text, n: n, all: all, visible: visible).text
end