com.opera.core.systems
Interface Utils

All Known Implementing Classes:
OperaDriver.OperaUtils

public interface Utils

Interface for accessing the browser's meta- and utility information, such as the operating system it's running on, its user agent string, &c.

Author:
Andreas Tolf Tolfsen

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.
 

Method Detail

getCoreVersion

java.lang.String getCoreVersion()
Which Core version this instance of the browser is using, e.g. "2.8.119".

Returns:
version number

getOS

java.lang.String getOS()
A string which describes the operating system, e.g. "Windows NT 6.1".

Returns:
operating system identifier

getProduct

java.lang.String getProduct()
A string which describes the product. For regular desktop builds this will be "desktop". Other examples are "mobile" and "gogi".

Returns:
browser's product type

getBinaryPath

java.lang.String getBinaryPath()
The full path to the currently running binary.

Returns:
full path to browser

getUserAgent

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

Returns:
User Agent string

getPID

int getPID()
The ID of the process we're currently talking to. Might not be present if the build does not support retrieving process IDs.

Returns:
process ID


Copyright © 2011. All Rights Reserved.