|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.selenium.DefaultSelenium com.unitedinternet.portal.selenium.utils.logging.LoggingDefaultSelenium
public class LoggingDefaultSelenium
Adds ability to log comments to DefaultSelenium.
Field Summary |
---|
Fields inherited from class com.thoughtworks.selenium.DefaultSelenium |
---|
commandProcessor |
Constructor Summary | |
---|---|
LoggingDefaultSelenium(com.thoughtworks.selenium.CommandProcessor commandProcessor)
Default Constructor. |
Method Summary | |
---|---|
void |
logAssertion(java.lang.String assertionName,
java.lang.String assertionMessage,
java.lang.String assertionCondition)
Log an assertion. |
void |
logAutomaticScreenshot(java.lang.String baseName)
Take a screen shot and write the location to the log. |
void |
logComment(java.lang.String comment)
Extension of Selenium to provide ability to log comments. |
void |
logResource(java.lang.String file,
java.lang.String description)
Log an resource (binary) file. |
Methods inherited from class com.thoughtworks.selenium.DefaultSelenium |
---|
addLocationStrategy, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureScreenshot, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookie, getCookieByName, getCursorPosition, getElementHeight, getElementIndex, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getTable, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, getXpathCount, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, open, openWindow, refresh, removeAllSelections, removeSelection, runScript, select, selectFrame, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, start, stop, submit, type, typeKeys, uncheck, waitForCondition, waitForFrameToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.thoughtworks.selenium.Selenium |
---|
addLocationStrategy, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureScreenshot, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, doubleClick, doubleClickAt, dragAndDrop, dragAndDropToObject, dragdrop, fireEvent, focus, getAlert, getAllButtons, getAllFields, getAllLinks, getAllWindowIds, getAllWindowNames, getAllWindowTitles, getAttribute, getAttributeFromAllWindows, getBodyText, getConfirmation, getCookie, getCookieByName, getCursorPosition, getElementHeight, getElementIndex, getElementPositionLeft, getElementPositionTop, getElementWidth, getEval, getExpression, getHtmlSource, getLocation, getMouseSpeed, getPrompt, getSelectedId, getSelectedIds, getSelectedIndex, getSelectedIndexes, getSelectedLabel, getSelectedLabels, getSelectedValue, getSelectedValues, getSelectOptions, getSpeed, getTable, getText, getTitle, getValue, getWhetherThisFrameMatchFrameExpression, getWhetherThisWindowMatchWindowExpression, getXpathCount, goBack, highlight, ignoreAttributesWithoutValue, isAlertPresent, isChecked, isConfirmationPresent, isCookiePresent, isEditable, isElementPresent, isOrdered, isPromptPresent, isSomethingSelected, isTextPresent, isVisible, keyDown, keyDownNative, keyPress, keyPressNative, keyUp, keyUpNative, metaKeyDown, metaKeyUp, mouseDown, mouseDownAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, open, openWindow, refresh, removeAllSelections, removeSelection, runScript, select, selectFrame, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, shutDownSeleniumServer, start, stop, submit, type, typeKeys, uncheck, waitForCondition, waitForFrameToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize |
Constructor Detail |
---|
public LoggingDefaultSelenium(com.thoughtworks.selenium.CommandProcessor commandProcessor)
commandProcessor
- this CommandProcessor will be used to handle the real remote-control communicationMethod Detail |
---|
public void logComment(java.lang.String comment)
logComment
in interface LoggingSelenium
comment
- the comment to be handled by the used formatterpublic void logAutomaticScreenshot(java.lang.String baseName)
logAutomaticScreenshot
in interface LoggingSelenium
baseName
- middle part of the generated filename. can be extended (with e.g. a timestamp) by the used
LoggingResultsFormatter.public void logAssertion(java.lang.String assertionName, java.lang.String assertionMessage, java.lang.String assertionCondition)
logAssertion
in interface LoggingSelenium
assertionName
- Name of the thrown assertionassertionMessage
- Message of the thrown assertionassertionCondition
- Failed condition which led to this assertion.public void logResource(java.lang.String file, java.lang.String description)
logResource
in interface LoggingSelenium
file
- A text that describes the reourcedescription
- Full path and file to the resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |