class RUTL::Interface::Chrome
Small interface for Chrome
browser.
Public Class Methods
new()
click to toggle source
rubocop:disable Metrics/MethodLength
Calls superclass method
RUTL::Interface::Browser::new
# File lib/rutl/interface/browser/chrome.rb, line 11 def initialize @logged_in = true options = Selenium::WebDriver::Chrome::Options.new options.add_argument('--ignore-certificate-errors') options.add_argument('--disable-popup-blocking') options.add_argument('--disable-translate') # Run headless on TravisCI if ENV['TRAVIS'] options.add_argument('--disable-gpu') options.add_argument('--headless ') options.add_argument('--no-sandbox') end @driver = Selenium::WebDriver.for :chrome, options: options super end