com.saucelabs.sauce_ondemand.driver
Interface SauceOnDemandSelenium

All Superinterfaces:
com.thoughtworks.selenium.Selenium

public interface SauceOnDemandSelenium
extends com.thoughtworks.selenium.Selenium

Additional methods exposed by Selenium returned from the "sauce-ondemand:..." URL.

Author:
Kohsuke Kawaguchi

Method Summary
 com.saucelabs.rest.Credential getCredential()
          Gets the credential used to connect to Sauce OnDemand.
 URL getSeleniumServerLogFile()
          Obtains the URL for downloading the Selenium server log file.
 InputStream getSeleniumServerLogFileInputStream()
          Retrieves the contents of the Selenium server log file.
 String getSessionId()
          Obtains the session ID of this Selenium.
 URL getVideo()
          Obtains the URL for downloading the video recording video.flv.
 InputStream getVideoInputStream()
          Retrieves the contents of the video recording.
 
Methods inherited from interface com.thoughtworks.selenium.Selenium
addCustomRequestHeader, addLocationStrategy, addScript, addSelection, allowNativeXpath, altKeyDown, altKeyUp, answerOnNextPrompt, assignId, attachFile, captureEntirePageScreenshot, captureEntirePageScreenshotToString, captureNetworkTraffic, captureScreenshot, captureScreenshotToString, check, chooseCancelOnNextConfirmation, chooseOkOnNextConfirmation, click, clickAt, close, contextMenu, contextMenuAt, controlKeyDown, controlKeyUp, createCookie, deleteAllVisibleCookies, deleteCookie, deselectPopUp, 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, getLog, 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, mouseDownRight, mouseDownRightAt, mouseMove, mouseMoveAt, mouseOut, mouseOver, mouseUp, mouseUpAt, mouseUpRight, mouseUpRightAt, open, open, openWindow, refresh, removeAllSelections, removeScript, removeSelection, retrieveLastRemoteControlLogs, rollup, runScript, select, selectFrame, selectPopUp, selectWindow, setBrowserLogLevel, setContext, setCursorPosition, setExtensionJs, setMouseSpeed, setSpeed, setTimeout, shiftKeyDown, shiftKeyUp, showContextualBanner, showContextualBanner, shutDownSeleniumServer, start, start, start, stop, submit, type, typeKeys, uncheck, useXpathLibrary, waitForCondition, waitForFrameToLoad, waitForPageToLoad, waitForPopUp, windowFocus, windowMaximize
 

Method Detail

getSessionId

String getSessionId()
Obtains the session ID of this Selenium.

If the session has ended via Selenium.stop(), this method returns the session ID of the last session.

Returns:
null if the session hasn't started yet.

getCredential

com.saucelabs.rest.Credential getCredential()
Gets the credential used to connect to Sauce OnDemand. This information is useful when retrieving server log and video.


getSeleniumServerLogFile

URL getSeleniumServerLogFile()
                             throws IOException
Obtains the URL for downloading the Selenium server log file.

Note that to acccess this URL you need to send in the credential through BASIC auth. Note that this file only becomes available some time after the test is stopped.

Throws:
IOException

getVideo

URL getVideo()
             throws IOException
Obtains the URL for downloading the video recording video.flv.

Note that to acccess this URL you need to send in the credential through BASIC auth. Note that this file only becomes available some time after the test is stopped.

Throws:
IOException

getSeleniumServerLogFileInputStream

InputStream getSeleniumServerLogFileInputStream()
                                                throws IOException
Retrieves the contents of the Selenium server log file.

Note that this file only becomes available some time after the test is stopped.

Throws:
IOException

getVideoInputStream

InputStream getVideoInputStream()
                                throws IOException
Retrieves the contents of the video recording.

Note that this file only becomes available some time after the test is stopped.

Throws:
IOException


Copyright © 2010. All Rights Reserved.