com.github.markusbernhardt.selenium2library.keywords
Class Logging

java.lang.Object
  extended by com.github.markusbernhardt.selenium2library.keywords.BrowserManagement
      extended by com.github.markusbernhardt.selenium2library.keywords.Cookie
          extended by com.github.markusbernhardt.selenium2library.keywords.Element
              extended by com.github.markusbernhardt.selenium2library.keywords.FormElement
                  extended by com.github.markusbernhardt.selenium2library.keywords.JavaScript
                      extended by com.github.markusbernhardt.selenium2library.keywords.Logging
Direct Known Subclasses:
RunOnFailure

public abstract class Logging
extends JavaScript


Field Summary
protected static ThreadLocal<org.python.util.PythonInterpreter> loggingPythonInterpreter
           
protected static Map<String,String[]> VALID_LOG_LEVELS
           
 
Fields inherited from class com.github.markusbernhardt.selenium2library.keywords.JavaScript
cancelOnNextConfirmation
 
Fields inherited from class com.github.markusbernhardt.selenium2library.keywords.BrowserManagement
implicitWait, remoteWebDriverProxyDomain, remoteWebDriverProxyHost, remoteWebDriverProxyPassword, remoteWebDriverProxyPort, remoteWebDriverProxyUser, remoteWebDriverProxyWorkstation, timeout, webDriverCache
 
Constructor Summary
Logging()
           
 
Method Summary
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)
           
protected  List<String> logList(List<String> items)
           
protected  List<String> logList(List<String> items, String what)
           
protected  void trace(String msg)
           
protected  void warn(String msg)
           
 
Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.JavaScript
alertShouldBePresent, alertShouldBePresent, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, closeAlert, closeAlert, confirmAction, executeAsyncJavascript, executeJavascript, getAlertMessage, getJavascriptToExecute, readFile
 
Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.FormElement
checkboxShouldBeSelected, checkboxShouldNotBeSelected, chooseFile, clickButton, getCheckbox, getRadioButtons, getRadioButtonWithValue, getValueFromRadioButtons, inputPassword, inputText, inputTextIntoTextField, isFormElement, pageShouldContainButton, pageShouldContainButton, pageShouldContainButton, pageShouldContainCheckbox, pageShouldContainCheckbox, pageShouldContainCheckbox, pageShouldContainRadioButton, pageShouldContainRadioButton, pageShouldContainRadioButton, pageShouldContainTextfield, pageShouldContainTextfield, pageShouldContainTextfield, pageShouldNotContainButton, pageShouldNotContainButton, pageShouldNotContainButton, pageShouldNotContainCheckbox, pageShouldNotContainCheckbox, pageShouldNotContainCheckbox, pageShouldNotContainRadioButton, pageShouldNotContainRadioButton, pageShouldNotContainRadioButton, pageShouldNotContainTextfield, pageShouldNotContainTextfield, pageShouldNotContainTextfield, radioButtonShouldBeSetTo, radioButtonShouldNotBeSelected, selectCheckbox, selectRadioButton, submitForm, submitForm, textfieldShouldContain, textfieldShouldContain, textfieldValueShouldBe, textfieldValueShouldBe, unselectCheckbox
 
Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.Element
assignIdToElement, clickElement, clickImage, clickLink, currentFrameContains, currentFrameContains, currentFrameShouldNotContain, currentFrameShouldNotContain, doubleClickElement, dragAndDrop, dragAndDropByOffset, elementFind, elementFind, elementShouldBeDisabled, elementShouldBeEnabled, elementShouldBeVisible, elementShouldBeVisible, elementShouldContain, elementShouldContain, elementShouldNotBeVisible, elementShouldNotBeVisible, elementTextShouldBe, elementTextShouldBe, escapeXpathValue, fetchText, fetchValue, fetchValue, focus, frameContains, frameShouldContain, frameShouldContain, getAllLinks, getElementAttribute, getHorizontalPosition, getMatchingXpathCount, getText, getValue, getValue, getVerticalPosition, helperPageShouldContainElement, helperPageShouldNotContainElement, isElementPresent, isElementPresent, isEnabled, isTextPresent, isVisible, mapAsciiKeyCodeToKey, mouseDown, mouseDownOnImage, mouseDownOnLink, mouseOut, mouseOver, mouseUp, openContextMenu, pageContains, pageShouldContain, pageShouldContain, pageShouldContainElement, pageShouldContainElement, pageShouldContainElement, pageShouldContainElement, pageShouldContainImage, pageShouldContainImage, pageShouldContainImage, pageShouldContainLink, pageShouldContainLink, pageShouldContainLink, pageShouldNotContain, pageShouldNotContain, pageShouldNotContainElement, pageShouldNotContainElement, pageShouldNotContainElement, pageShouldNotContainElement, pageShouldNotContainImage, pageShouldNotContainImage, pageShouldNotContainImage, pageShouldNotContainLink, pageShouldNotContainLink, pageShouldNotContainLink, parseAttributeLocator, pressKey, simulate, xpathShouldMatchXTimes, xpathShouldMatchXTimes, xpathShouldMatchXTimes
 
Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.Cookie
addCookie, deleteAllCookies, deleteCookie, getCookies, getCookieValue
 
Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.BrowserManagement
closeAllBrowsers, closeBrowser, closeWindow, createDesiredCapabilities, createLocalWebDriver, createRemoteWebDriver, createWebDriver, getLocation, getPasswordFromURL, getSeleniumImplicitWait, getSeleniumSpeed, getSeleniumTimeout, getSource, getTitle, getUserFromURL, getWindowIdentifiers, getWindowNames, getWindowTitles, goBack, goTo, locationShouldBe, locationShouldContain, logLocation, logSource, logSource, logTitle, maximizeBrowserWindow, openBrowser, openBrowser, openBrowser, openBrowser, openBrowser, openBrowser, reloadPage, selectFrame, selectWindow, selectWindow, setBrowserImplicitWait, setRemoteWebDriverProxy, setRemoteWebDriverProxy, setRemoteWebDriverProxy, setRemoteWebDriverProxy, setSeleniumImplicitWait, setSeleniumSpeed, setSeleniumTimeout, switchBrowser, titleShouldBe, unselectFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALID_LOG_LEVELS

protected static final Map<String,String[]> VALID_LOG_LEVELS

loggingPythonInterpreter

protected static ThreadLocal<org.python.util.PythonInterpreter> loggingPythonInterpreter
Constructor Detail

Logging

public Logging()
Method Detail

trace

protected void trace(String msg)
Specified by:
trace in class BrowserManagement

debug

protected void debug(String msg)
Specified by:
debug in class BrowserManagement

info

protected void info(String msg)
Specified by:
info in class BrowserManagement

html

protected void html(String msg)
Specified by:
html in class BrowserManagement

warn

protected void warn(String msg)
Specified by:
warn in class BrowserManagement

log

protected void log(String msg,
                   String logLevel)
Specified by:
log in class BrowserManagement

log0

protected void log0(String msg,
                    String methodName,
                    String methodArguments)

logList

protected List<String> logList(List<String> items)
Specified by:
logList in class BrowserManagement

logList

protected List<String> logList(List<String> items,
                               String what)
Specified by:
logList in class BrowserManagement

getLogDir

protected File getLogDir()
Specified by:
getLogDir in class BrowserManagement


Copyright © 2013. All Rights Reserved.