Class: RUTL::Interface::Firefox
- Defined in:
- lib/rutl/interface/browser/firefox.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 ⇒ Firefox
constructor
A new instance of Firefox.
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 ⇒ Firefox
Returns a new instance of Firefox.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rutl/interface/browser/firefox.rb', line 10 def initialize @logged_in = true = Selenium::WebDriver::Firefox::Options.new .add_argument('--ignore-certificate-errors') .add_argument('--disable-popup-blocking') .add_argument('--disable-translate') .add_argument('--headless') if ENV['TRAVIS'] || ENV['CIRCLECI'] @driver = Selenium::WebDriver.for :firefox, options: super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RUTL::Interface::Base