lib/rutl/null_driver/null_driver.rb in rutl-0.6.0 vs lib/rutl/null_driver/null_driver.rb in rutl-0.8.0

- old
+ new

@@ -1,10 +1,10 @@ require 'rutl/null_driver/null_element' module RUTL # - # This is at a peer level to the webdrivers but it's for a fake brwoser. + # This is at a peer level to the webdrivers but it's for a fake application. # class NullDriver attr_accessor :context def initialize(context) @@ -17,20 +17,20 @@ def find_element(type, location) context = RUTL::Element::ElementContext.new(interface: @context.interface) RUTL::Element::NullElement.new(context, type, location) end - # Cheap way to handle browser.navigate.to(url) + # Cheap way to handle application.navigate.to(url) # TODO: Until I care about the url and then I should ???? def navigate context = RUTL::Element::ElementContext.new(interface: @context.interface) NullDriver.new(context) end # Cheap second part to naviate.to(url) calls to look like real drivers. def to(url) - result = @context.interface.find_page(url) - @context.interface.current_page = result + result = @context.interface.find_view(url) + @context.interface.current_view = result result.url end # Clean out the @@variables from NullElement. # Other than this, this is a placeholder to match real drivers.