lib/kitchen/chapter_element.rb
# Returns the title element (the one in the immediate children, not the one in the metadata)
#
# @raise [ElementNotFoundError] if no matching element is found
# @return [Element]
#
Returns the title element (the one in the immediate children, not the one in the metadata)
Returns the title element ( the one in the immediate children not the one in the metadata )
def title
      first!("./*[@data-type = 'document-title']")
    end
def title first! ( "./*[@data-type = 'document-title']" ) end
Returns the title element (the one in the immediate children, not the one in the metadata)
Returns the title element ( the one in the immediate children not the one in the metadata )
# Get the title in the immediate children, not the one in the metadata.  Could use # CSS of ":not([data-type='metadata']) > #       [data-type='document-title'], [data-type='document-title']" # but xpath is shorter
None
Element
[ElementNotFoundError] if no matching element is found
[ ElementNotFoundError ] if no matching element is found