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