Sha256: d3c03f798d19fbb09552c6deff9993b4301901d65ff293864879b02282a6e396
Contents?: true
Size: 704 Bytes
Versions: 2
Compression:
Stored size: 704 Bytes
Contents
require 'rutl/interface/base_interface' # # Interface-level code for fake browser. # class NullInterface < BaseInterface # Only the null interface>> attr_reader :current_page @variables = [] attr_accessor :variables def initialize(pages:) @driver = NullDriver.new @driver.interface = @interface super end def set_current_page(page) @current_page = page end def current_page # Default to @pages.first if not set? # A browser can alwasy check its current URL but the null driver can't. @current_page || @pages.first end def wait_for_transition(destinations) @current_page = find_page(destinations.first) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rutl-0.1.2 | lib/rutl/interface/null_interface.rb |
rutl-0.1.1 | lib/rutl/interface/null_interface.rb |