Sha256: 177629669c500d7d5df74abd080f44cecde14431d23826fac58b3e73d04523ce
Contents?: true
Size: 761 Bytes
Versions: 2
Compression:
Stored size: 761 Bytes
Contents
require 'selenium-webdriver' require 'rutl/interface/base_interface' # # Small interface for Chrome browser. # # TODO: Probably the current_page() implementation should move up to base. # class FirefoxInterface < BaseInterface def initialize(pages:) @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') @driver = Selenium::WebDriver.for :firefox, options: options super end def current_page url = @driver.current_url page = find_page(url, true) raise "PAGE NOT FOUND: #{url}, PAGES: #{@pages}" unless page page end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rutl-0.1.2 | lib/rutl/interface/firefox_interface.rb |
rutl-0.1.1 | lib/rutl/interface/firefox_interface.rb |