Class: RUTL::Interface::Chrome
- Defined in:
- lib/rutl/interface/browser/chrome.rb
Overview
Small interface for Chrome browser.
Constant Summary
Constants included from Waiter
Waiter::DEFAULT_TIMEOUT, Waiter::POLL_SLEEP_TIME
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Chrome
constructor
rubocop:disable Metrics/MethodLength.
Methods inherited from Browser
Methods inherited from Base
#current_view, #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 ⇒ Chrome
rubocop:disable Metrics/MethodLength
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rutl/interface/browser/chrome.rb', line 11 def initialize @logged_in = true = Selenium::WebDriver::Chrome::Options.new .add_argument('--ignore-certificate-errors') .add_argument('--disable-popup-blocking') .add_argument('--disable-translate') # Run headless on TravisCI if ENV['TRAVIS'] .add_argument('--disable-gpu') .add_argument('--headless ') .add_argument('--no-sandbox') end @driver = Selenium::WebDriver.for :chrome, options: super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RUTL::Interface::Base