Sha256: 103a5eab4e30ed4bacdf39e5cd6c82f3841f60050389f2f2b59ba9b10aabc1e4

Contents?: true

Size: 1.55 KB

Versions: 3

Compression:

Stored size: 1.55 KB

Contents

# frozen_string_literal: true

module Kitchen
  module Selectors
    # A specific set of selectors
    #
    class Standard1 < Base

      # Create a new instance
      #
      def initialize
        super
        self.title_in_page              = "./*[@data-type = 'document-title']"
        self.title_in_introduction_page = "./*[@data-type = 'document-title']"
        self.page_summary               = 'section.summary'
        self.reference                  = '.reference'
        self.chapter                    = "div[data-type='chapter']"
        self.page                       = "div[data-type='page']"
        self.note                       = "div[data-type='note']"
        self.term                       = "span[data-type='term']"
        self.table                      = 'table'
        self.figure                     = 'figure'
        self.metadata                   = "div[data-type='metadata']"
        self.composite_page             = "div[data-type='composite-page']"
        self.composite_chapter          = "div[data-type='composite-chapter']"
        self.example                    = "div[data-type='example']"
        self.exercise                   = "div[data-type='exercise']"
        self.unit                       = "div[data-type='unit']"
        self.solution                   = "div[data-type='solution'], " \
                                          "div[data-type='question-solution']"
        self.injected_question          = "div[data-type='exercise-question']"
        self.section                    = 'section'
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openstax_kitchen-15.0.0 lib/kitchen/selectors/standard_1.rb
openstax_kitchen-14.0.0 lib/kitchen/selectors/standard_1.rb
openstax_kitchen-13.0.0 lib/kitchen/selectors/standard_1.rb