Sha256: 73397c8c443544d8d8165eed146a060bf956b53503eea8818cf1a24c9794748c
Contents?: true
Size: 750 Bytes
Versions: 38
Compression:
Stored size: 750 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 | [ :disabled, :label, :selected, :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
38 entries across 38 versions & 6 rubygems