Sha256: 1327a914cee63173e68a9a935e27e2ca848d9051c30752e8e0556424072566ce
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
require 'kookaburra/ui_driver/mixins/has_browser' require 'kookaburra/ui_driver/mixins/has_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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kookaburra-0.11.0 | lib/kookaburra/ui_driver.rb |
kookaburra-0.10.0 | lib/kookaburra/ui_driver.rb |
kookaburra-0.9.1 | lib/kookaburra/ui_driver.rb |
kookaburra-0.9.0 | lib/kookaburra/ui_driver.rb |