Class: Watir::Container::ContentElement

Inherits:
HtmlElement show all
Includes:
Watir::Container, Clickable
Defined in:
lib/safariwatir.rb

Direct Known Subclasses

Div, Label, Link, P, Span, TableCell

Constant Summary

Constants included from Watir::Container

DEFAULT_TYPING_LAG

Constants inherited from HtmlElement

HtmlElement::OPERATIONS

Instance Attribute Summary

Attributes inherited from HtmlElement

#how, #what

Instance Method Summary collapse

Methods included from Watir::Container

#button, #cell, #checkbox, #contains_text, #div, #form, #frame, #image, #label, #link, #p, #password, #radio, #row, #select_list, #set_fast_speed, #set_slow_speed, #span, #speed=, #table, #text_field

Methods included from Clickable

#click

Methods inherited from HtmlElement

#exists?, #name, #operate, #tag

Instance Method Details

#htmlObject



178
179
180
# File 'lib/safariwatir.rb', line 178

def html
  @scripter.get_html_for(self)
end

#speakObject



186
187
188
# File 'lib/safariwatir.rb', line 186

def speak
  @scripter.speak_text_of(self)
end

#textObject



182
183
184
# File 'lib/safariwatir.rb', line 182

def text
  @scripter.get_text_for(self)
end