Module: SpanHelper

Defined in:
lib/watir_helper/span_helper.rb

Instance Method Summary collapse

Instance Method Details

#exists_span(property, propertyvalue) ⇒ Object

Check whether a span exists or not.



12
13
14
15
# File 'lib/watir_helper/span_helper.rb', line 12

def exists_span(property,propertyvalue)
  propertyvalue=/#{propertyvalue}/
  $ie.span(property.intern,propertyvalue).exists?
end

#flash_span(property, propertyvalue) ⇒ Object

Highlight or Flash a span.



6
7
8
9
# File 'lib/watir_helper/span_helper.rb', line 6

def flash_span(property,propertyvalue)
  propertyvalue=/#{propertyvalue}/
  $ie.span(property.intern,propertyvalue).flash
end