class Browsenator::Local::Firefox
Attributes
options[R]
Public Class Methods
new(opts = {})
click to toggle source
# File lib/browsenator/local/firefox.rb, line 8 def initialize(opts = {}) @options = { accept_insecure_certs: true } @options[:headless] = true if opts[:headless] end
Public Instance Methods
open()
click to toggle source
# File lib/browsenator/local/firefox.rb, line 14 def open firefox = Watir::Browser.new :firefox, options firefox.window.resize_to(width, height) firefox end