Class: Watir::ElementCollection
- Inherits:
-
Object
- Object
- Watir::ElementCollection
- Defined in:
- lib/omni_browser/watir.rb
Instance Method Summary collapse
Instance Method Details
#each_print ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/omni_browser/watir.rb', line 39 def each_print self.each { |element| output = [element.text.inspect] output << element.class_name.inspect output << element.id.inspect puts output.join(', ') } puts PRINT_LINE end |
#text ⇒ Object
49 50 51 52 53 |
# File 'lib/omni_browser/watir.rb', line 49 def text self.inject([]) { |acc, element| acc << element.text } end |