<commit_before>module OperaWatir
  class QuickDropdownItem < QuickEditField #QuickWidget # QuickEditField?

    # @private
    # Checks the type of the widget is correct
    def correct_type?
      @element.getType == WIDGET_ENUM_MAP[:dropdownitem]
    end
    
    ######################################################################
    # Checks if the item is selected 
    #
    # @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?
      element.isSelected
    end
    
    ##########################################################################
    #
    #
    #
    def select_with_click
      click
      selected?
    end
    
  end
end <commit_msg>Fix quick_dropdownitem#selected?<commit_after>module OperaWatir
  class QuickDropdownItem < QuickEditField #QuickWidget # QuickEditField?

    # @private
    # Checks the type of the widget is correct
    def correct_type?
      @element.getType == WIDGET_ENUM_MAP[:dropdownitem]
    end
    
    ######################################################################
    # Checks if the item is selected 
    #
    # @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?
      element(true).isSelected()
    end
    
    ##########################################################################
    #
    #
    #
    def select_with_click
      click
      selected?
    end
    
  end
end 
{'fraction_non_alphanumeric': 0.2085889570552147, 'fraction_numerical': 0.0, 'mean_word_length': 2.7375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1881736', 'n_tokens_mistral': 458, 'n_tokens_neox': 437, 'n_words': 133}