Class: RUTL::Interface::Browser
- Defined in:
- lib/rutl/interface/browser/browser.rb
Overview
Small interface for Chrome browser.
Direct Known Subclasses
Constant Summary
Constants included from Waiter
Waiter::DEFAULT_TIMEOUT, Waiter::POLL_SLEEP_TIME
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #current_view ⇒ Object
-
#initialize ⇒ Browser
constructor
A new instance of Browser.
Methods inherited from Base
#find_state, #find_view, #goto, #method_missing, #quit, #respond_to_missing?, #wait_for_transition
Methods included from Waiter
Methods included from CheckView
Constructor Details
#initialize ⇒ Browser
Returns a new instance of Browser.
10 11 12 |
# File 'lib/rutl/interface/browser/browser.rb', line 10 def initialize super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RUTL::Interface::Base
Instance Method Details
#current_view ⇒ Object
14 15 16 17 18 19 |
# 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 |