com.opera.core.systems
Class OperaDriver.OperaUtils

java.lang.Object
  extended by com.opera.core.systems.OperaDriver.OperaUtils
All Implemented Interfaces:
Utils
Enclosing class:
OperaDriver

public class OperaDriver.OperaUtils
extends java.lang.Object
implements Utils


Constructor Summary
OperaDriver.OperaUtils()
           
 
Method Summary
 java.lang.String getBinaryPath()
          The full path to the currently running binary.
 java.lang.String getCoreVersion()
          Which Core version this instance of the browser is using, e.g.
 java.lang.String getOS()
          A string which describes the operating system, e.g.
 int getPID()
          The ID of the process we're currently talking to.
 java.lang.String getProduct()
          A string which describes the product.
 java.lang.String getUserAgent()
          The User-Agent string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperaDriver.OperaUtils

public OperaDriver.OperaUtils()
Method Detail

getCoreVersion

public java.lang.String getCoreVersion()
Description copied from interface: Utils
Which Core version this instance of the browser is using, e.g. "2.8.119".

Specified by:
getCoreVersion in interface Utils
Returns:
version number

getOS

public java.lang.String getOS()
Description copied from interface: Utils
A string which describes the operating system, e.g. "Windows NT 6.1".

Specified by:
getOS in interface Utils
Returns:
operating system identifier

getProduct

public java.lang.String getProduct()
Description copied from interface: Utils
A string which describes the product. For regular desktop builds this will be "desktop". Other examples are "mobile" and "gogi".

Specified by:
getProduct in interface Utils
Returns:
browser's product type

getBinaryPath

public java.lang.String getBinaryPath()
Description copied from interface: Utils
The full path to the currently running binary.

Specified by:
getBinaryPath in interface Utils
Returns:
full path to browser

getUserAgent

public java.lang.String getUserAgent()
Description copied from interface: Utils
The User-Agent string. Typically something like Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.01.

Specified by:
getUserAgent in interface Utils
Returns:
User Agent string

getPID

public int getPID()
Description copied from interface: Utils
The ID of the process we're currently talking to. Might not be present if the build does not support retrieving process IDs.

Specified by:
getPID in interface Utils
Returns:
process ID


Copyright © 2011. All Rights Reserved.