Sha256: 07c97aa754ad159c29bfbfa81f52739411a17c464b81e1520df236eaced24816

Contents?: true

Size: 610 Bytes

Versions: 5

Compression:

Stored size: 610 Bytes

Contents

require 'kookaburra/ui_driver/mixins/has_browser'
require 'kookaburra/ui_driver/mixins/has_ui_component'

module Kookaburra
  class UIDriver
    include HasBrowser
    include HasUIComponent

    def test_data
      @test_data ||= @opts.fetch(:test_data)
    end

    def initialize(opts = {})
      super
      @opts = opts
    end

    def navigate_to(component_id, parameters = {})
      if ui_component_names.include?(component_id)
        self.send(component_id).show!(parameters)
      else
        raise UIComponentNotFound, "The #{component_id} component is not registered"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kookaburra-0.8.0 lib/kookaburra/ui_driver.rb
kookaburra-0.7.2 lib/kookaburra/ui_driver.rb
kookaburra-0.7.1 lib/kookaburra/ui_driver.rb
kookaburra-0.7.0 lib/kookaburra/ui_driver.rb
kookaburra-0.6.0 lib/kookaburra/ui_driver.rb