Sha256: 1761e2ad44af7adeb296c7aff9ea610e548988c7b016e69e13b3efd79074afd2
Contents?: true
Size: 557 Bytes
Versions: 9
Compression:
Stored size: 557 Bytes
Contents
module Celerity # # Represents an option in a select list. # class Option < Element include ClickableElement include DisabledElement TAGS = [ Identifier.new('option')] ATTRIBUTES = BASE_ATTRIBUTES | [:selected, :disabled, :label, :value] DEFAULT_HOW = :text alias_method :select, :click # # Is this option selected? # def selected? assert_exists @object.isSelected end def label # overrides Container#label assert_exists @object.getLabelAttribute end end end
Version data entries
9 entries across 9 versions & 3 rubygems