Sha256: adb706215821b51ba904627b690c80070a53b7cf4638b64b7002f43aefa1fc80
Contents?: true
Size: 795 Bytes
Versions: 2
Compression:
Stored size: 795 Bytes
Contents
require 'selenium-webdriver' require 'rutl/interface/base_interface' module RUTL # # Small interface for Chrome browser. # class FirefoxInterface < BaseInterface def initialize @logged_in = true options = Selenium::WebDriver::Firefox::Options.new options.add_argument('--ignore-certificate-errors') options.add_argument('--disable-popup-blocking') options.add_argument('--disable-translate') options.add_argument('--headless') if ENV['TRAVIS'] == 'true' @driver = Selenium::WebDriver.for :firefox, options: options super end def current_page url = @driver.current_url page = find_page(url) raise "PAGE NOT FOUND: #{url}, PAGES: #{@pages}" unless page page end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rutl-0.5.0 | lib/rutl/interface/firefox_interface.rb |
rutl-0.4.0 | lib/rutl/interface/firefox_interface.rb |