Class: Billy::Browsers::Watir

Inherits:
Watir::Browser
  • Object
show all
Defined in:
lib/billy/browsers/watir.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, args = {}) ⇒ Watir

Returns a new instance of Watir.



8
9
10
11
12
13
14
15
16
17
# File 'lib/billy/browsers/watir.rb', line 8

def initialize(name, args = {})
  args = case name
    when :chrome then configure_chrome(args)
    when :phantomjs then configure_phantomjs(args)
    when :firefox then configure_firefox(args)
    else
      raise NameError, "Invalid browser driver specified. (Expected: :chrome, :phantomjs, :firefox)"
  end
  super
end