Sha256: 655865c3e304b54bcea1158a3cbc26b2a7f0b82b7154a7dd0602e0384d1b2e45
Contents?: true
Size: 923 Bytes
Versions: 14
Compression:
Stored size: 923 Bytes
Contents
module OperaWatir class QuickDropdown < QuickEditField #QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:dropdown] end ###################################################################### # Checks if the item selected in the dropdown matches the text loaded # from Opera using the string_id # # @param [String] string_id String ID to use to load the string from the current # language file (e.g. "D_NEW_PREFERENCES_GENERAL") # # @return [Boolean] true if the dropdown has the item with the # string_id selected, otherwise false # # @raise [Exceptions::UnknownObjectException] if the widget could not be found # using the specified method def selected?(string_id) element.isSelected(string_id) end end end
Version data entries
14 entries across 14 versions & 1 rubygems