Sha256: 3e5c46d89bf50439a8c79681eaba12763bd44c01d8508e132fb1604bda7b1946
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
require 'rutl/driver/null_driver_page_element' # # This is at a peer level to the webdrivers but it's for a fake brwoser. # class NullDriver attr_accessor :interface def find_element(type, location) # Return a new one of these so that it can be clicked ar written # to or whatever. element = NullDriverPageElement.new(type, location) element.interface = @interface element end # Cheap way to handle browser.navigate.to(url) # TODO: Until I care about the url and then I should ???? def navigate result = NullDriver.new result.interface = @interface result end def to(url) result = @interface.find_page(url) @interface.set_current_page result result.url end def quit 'quit' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rutl-0.1.3 | lib/rutl/driver/null_driver.rb |
rutl-0.1.2 | lib/rutl/driver/null_driver.rb |
rutl-0.1.1 | lib/rutl/driver/null_driver.rb |