Sha256: 3b7d013a3615881eca1b24e972dc215a07948031f389dff33c6f2711e24f4a35

Contents?: true

Size: 707 Bytes

Versions: 16

Compression:

Stored size: 707 Bytes

Contents

require 'kookaburra/ui_driver/ui_component'

class Kookaburra
  class UIDriver
    class UIComponent
      # This represents the browser's address bar, so that you can tell your
      # tests to explicitly visit a URL.
      class AddressBar < UIComponent
        # Causes the browser to explicitly navigate to the given url.
        #
        # @param [String, #url] addressable Can be either a URL string or an
        # object that responds to #url and returns a URL string
        def go_to(addressable)
          if addressable.respond_to?(:url)
            browser.visit(addressable.url)
          else
            browser.visit(addressable.to_s)
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kookaburra-1.2.1 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-1.2.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-1.1.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-1.0.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.27.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.26.1 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.26.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.25.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.24.1 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.24.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.23.1 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.23.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.22.3 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.22.2 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.22.1 lib/kookaburra/ui_driver/ui_component/address_bar.rb
kookaburra-0.22.0 lib/kookaburra/ui_driver/ui_component/address_bar.rb