Class: Opera

Inherits:
Browser show all
Defined in:
lib/hanoi/browsers/opera.rb

Instance Method Summary collapse

Methods inherited from Browser

#escaped_name, #host, #installed?, #linux?, #macos?, #name, #path, #runnable?, #supported?, #teardown, #to_s, #visit, #windows?

Constructor Details

#initialize(path = 'c:\Program Files\Opera\Opera.exe') ⇒ Opera

Returns a new instance of Opera.



2
3
4
# File 'lib/hanoi/browsers/opera.rb', line 2

def initialize(path = 'c:\Program Files\Opera\Opera.exe')
  @path = path
end

Instance Method Details

#setupObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/hanoi/browsers/opera.rb', line 6

def setup
  if windows?
    puts %{
      MAJOR ANNOYANCE on Windows.
      You have to shut down Opera manually after each test
      for the script to proceed.
      Any suggestions on fixing this is GREATLY appreciated!
      Thank you for your understanding.
    }
  end
end