Sha256: 47469d852b45784aab0fe67e948c50fcb61d5adfeb71bdac5f8d23d9c0a65f29

Contents?: true

Size: 633 Bytes

Versions: 7

Compression:

Stored size: 633 Bytes

Contents

require 'kookaburra/ui_driver/mixins/has_browser'
require 'kookaburra/ui_driver/ui_component'

module Kookaburra
  class UIDriver
    include Kookaburra::Assertion
    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

7 entries across 7 versions & 1 rubygems

Version Path
kookaburra-0.14.4 lib/kookaburra/ui_driver.rb
kookaburra-0.14.3 lib/kookaburra/ui_driver.rb
kookaburra-0.14.2 lib/kookaburra/ui_driver.rb
kookaburra-0.14.1 lib/kookaburra/ui_driver.rb
kookaburra-0.14.0 lib/kookaburra/ui_driver.rb
kookaburra-0.13.0 lib/kookaburra/ui_driver.rb
kookaburra-0.12.0 lib/kookaburra/ui_driver.rb