def text
      assert_exists

      # A little unintuitive - we'll return the 'label' or 'text' attribute if
      # they exist, otherwise the inner text of the element

      attribute = [:label, :text].find { |a| attribute? a }

      if attribute
        @element.get_attribute(attribute)
      else
        @element.text
      end
    end
def text
      assert_exists

      # A little unintuitive - we'll return the 'label' or 'text' attribute if
      # they exist, otherwise the inner text of the element

      attribute = [:label, :text].find { |a| attribute? a }

      if attribute
        @element.get_attribute(attribute)
      else
        @element.text
      end
    end
Returns the text of option.

 Note that the text is either one of the following respectively:
   * label attribute
   * text attribute
   * inner element text

 @return [String]