class RUTL::Interface::Browser

Small interface for Chrome browser.

Public Class Methods

new() click to toggle source
Calls superclass method RUTL::Interface::Base::new
# File lib/rutl/interface/browser/browser.rb, line 10
def initialize
  super
end

Public Instance Methods

current_view() click to toggle source
# File lib/rutl/interface/browser/browser.rb, line 14
def current_view
  url = @driver.current_url
  view = find_view(url)
  raise "NOT FOUND: #{url}, VIEWS: #{@views}" unless view
  view
end