public class Logging extends RunOnFailureKeywordsAdapter
| Modifier and Type | Field and Description |
|---|---|
protected BrowserManagement |
browserManagement
Instantiated BrowserManagement keyword bean
|
protected static String |
logDir |
protected static ThreadLocal<org.python.util.PythonInterpreter> |
loggingPythonInterpreter |
protected static Map<String,String[]> |
VALID_LOG_LEVELS |
| Constructor and Description |
|---|
Logging() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
debug(String msg) |
protected File |
getLogDir() |
protected void |
html(String msg) |
protected void |
info(String msg) |
protected void |
log(String msg,
String logLevel) |
protected void |
log0(String msg,
String methodName,
String methodArguments) |
String |
logLocation() |
String |
logLocation(String logLevel)
Logs and returns the location of the current browser instance.
|
String |
logRemoteCapabilities() |
String |
logRemoteCapabilities(String logLevel)
Logs and returns the actually supported capabilities of the remote
browser instance.
|
String |
logRemoteSessionId() |
String |
logRemoteSessionId(String logLevel)
Logs and returns the session id of the remote browser instance.
|
String |
logSource() |
String |
logSource(String logLevel)
Logs and returns the entire html source of the current page or frame.
|
String |
logSystemInfo() |
String |
logSystemInfo(String logLevel)
Logs and returns basic system information about the execution
environment.
|
String |
logTitle() |
String |
logTitle(String logLevel)
Logs and returns the title of current page.
|
List<String> |
logWindowIdentifiers() |
List<String> |
logWindowIdentifiers(String logLevel)
Logs and returns the id attributes of all windows known to the current
browser instance.
|
List<String> |
logWindowNames() |
List<String> |
logWindowNames(String logLevel)
Logs and returns the names of all windows known to the current browser
instance.
|
List<String> |
logWindowTitles() |
List<String> |
logWindowTitles(String logLevel)
Logs and returns the titles of all windows known to the current browser
instance.
|
static void |
setLogDir(String logDirectory) |
void |
setLogDirectory(String logDirectory)
Set the logDirectory, where captured screenshots are stored, to
some custom path.
|
protected void |
trace(String msg) |
protected void |
warn(String msg) |
runOnFailureByAspectJprotected static String logDir
protected BrowserManagement browserManagement
protected static ThreadLocal<org.python.util.PythonInterpreter> loggingPythonInterpreter
public List<String> logWindowIdentifiers(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getWindowIdentifiers()public List<String> logWindowNames(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getWindowNames()public List<String> logWindowTitles(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getWindowTitles()public String logLocation()
public String logLocation(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getLocation()public String logSource()
public String logSource(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getSource()public String logTitle()
public String logTitle(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getSource()public String logSystemInfo()
public String logSystemInfo(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getSystemInfo()public String logRemoteCapabilities()
public String logRemoteCapabilities(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getRemoteCapabilities()public String logRemoteSessionId()
public String logRemoteSessionId(String logLevel)
logLevel - Default=INFO. Optional log level.BrowserManagement.getRemoteSessionId()public void setLogDirectory(String logDirectory) throws Exception
logDirectory - The directory to log to.Exceptionprotected void trace(String msg)
protected void debug(String msg)
protected void info(String msg)
protected void html(String msg)
protected void warn(String msg)
protected File getLogDir()
public static void setLogDir(String logDirectory)
Copyright © 2014. All rights reserved.