Sha256: 5e7fdbe155a9b20afb0720af695c93319db8e5d2c0952b55d5619df7d4c812d8

Contents?: true

Size: 489 Bytes

Versions: 26

Compression:

Stored size: 489 Bytes

Contents

module TestCentricity
  module Elements
    class Range < TextField
      def initialize(name, parent, locator, context)
        super
        @type = :range
      end

      def get_value(visible = true)
        obj, type = find_element(visible)
        object_not_found_exception(obj, type)
        result = obj.value
        unless result.blank?
          if result.is_int?
            result.to_i
          else
            result
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
testcentricity_web-4.6.0 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.15 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.14 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.13 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.12 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.11 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.10 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.9.1 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.9 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.7 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.6 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.5 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.4 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.3 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.2 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.1 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.5.0 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.4.7 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.4.6 lib/testcentricity_web/web_elements/range.rb
testcentricity_web-4.4.5 lib/testcentricity_web/web_elements/range.rb