Sha256: 1ac63e213192679eb5532f12373ff8f0e95ea9c018cdbc2815a9e7f9e02ff529

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

module PageObject
  module Platforms
    module SeleniumElement
      
      #
      # return true if an element is visible
      #
      def visible?
        @element.displayed?
      end
    
      #
      # return true if an element exists
      #
      def exists?
        nil != @element
      end

      #
      # return the text for the element
      #
      def text
        @element.text
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
page-object-0.0.2 lib/page-object/platforms/selenium_element.rb