Class: OperaWatir::Utils

Inherits:
Object show all
Defined in:
lib/operawatir/utils.rb

Instance Method Summary collapse

Constructor Details

#initialize(browser) ⇒ Utils

Returns a new instance of Utils.



3
4
5
# File 'lib/operawatir/utils.rb', line 3

def initialize(browser)
  @utils = browser.driver.utils
end

Instance Method Details

#binary_pathObject



19
20
21
# File 'lib/operawatir/utils.rb', line 19

def binary_path
  @utils.getBinaryPath
end

#core_versionObject



7
8
9
# File 'lib/operawatir/utils.rb', line 7

def core_version
  @utils.getCoreVersion
end

#osObject



11
12
13
# File 'lib/operawatir/utils.rb', line 11

def os
  @utils.getOS
end

#pidObject



27
28
29
# File 'lib/operawatir/utils.rb', line 27

def pid
  @utils.getPID
end

#productObject



15
16
17
# File 'lib/operawatir/utils.rb', line 15

def product
  @utils.getProduct
end

#user_agentObject



23
24
25
# File 'lib/operawatir/utils.rb', line 23

def user_agent
  @utils.getUserAgent
end