com.github.markusbernhardt.selenium2library
Class Selenium2Library
java.lang.Object
com.github.markusbernhardt.selenium2library.keywords.BrowserManagement
com.github.markusbernhardt.selenium2library.keywords.Cookie
com.github.markusbernhardt.selenium2library.keywords.Element
com.github.markusbernhardt.selenium2library.keywords.FormElement
com.github.markusbernhardt.selenium2library.keywords.JavaScript
com.github.markusbernhardt.selenium2library.keywords.Logging
com.github.markusbernhardt.selenium2library.keywords.RunOnFailure
com.github.markusbernhardt.selenium2library.keywords.Screenshot
com.github.markusbernhardt.selenium2library.keywords.SelectElement
com.github.markusbernhardt.selenium2library.keywords.TableElement
com.github.markusbernhardt.selenium2library.keywords.Waiting
com.github.markusbernhardt.selenium2library.keywords.Selenium2LibraryEnhancement
com.github.markusbernhardt.selenium2library.Selenium2Library
- Direct Known Subclasses:
- Selenium2Library
public class Selenium2Library
- extends Selenium2LibraryEnhancement
Robotframework Library. All public methods are keywords.
|
Method Summary |
void |
runOnFailureByAspectJ()
This method is called by the
com.github.markusbernhardt.selenium2library.aspects.RunOnFailureAspect in
case a exception is thrown in one of the public methods of a keyword
class. |
| Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.Selenium2LibraryEnhancement |
addLocationStrategy, addLocationStrategy, elementShouldBeClickable, elementShouldBeClickable, elementShouldBeSelected, elementShouldBeSelected, elementShouldNotBeClickable, elementShouldNotBeClickable, elementShouldNotBeSelected, elementShouldNotBeSelected, elementShouldNotContain, elementShouldNotContain, elementTextShouldNotBe, elementTextShouldNotBe, getRemoteCapabilities, getRemoteSessionId, getSystemInfo, isClickable, isSelected, logRemoteCapabilities, logRemoteSessionId, logSystemInfo, waitUntilElementIsClickable, waitUntilElementIsClickable, waitUntilElementIsClickable, waitUntilElementIsNotClickable, waitUntilElementIsNotClickable, waitUntilElementIsNotClickable, waitUntilElementIsNotSelected, waitUntilElementIsNotSelected, waitUntilElementIsNotSelected, waitUntilElementIsNotVisible, waitUntilElementIsNotVisible, waitUntilElementIsNotVisible, waitUntilElementIsSelected, waitUntilElementIsSelected, waitUntilElementIsSelected, waitUntilElementIsSuccessfullyClicked, waitUntilElementIsSuccessfullyClicked, waitUntilElementIsSuccessfullyClicked, waitUntilElementIsVisible, waitUntilElementIsVisible, waitUntilElementIsVisible, waitUntilPageNotContains, waitUntilPageNotContains, waitUntilPageNotContains, waitUntilPageNotContainsElement, waitUntilPageNotContainsElement, waitUntilPageNotContainsElement, waitUntilTitleContains, waitUntilTitleContains, waitUntilTitleContains, waitUntilTitleIs, waitUntilTitleIs, waitUntilTitleIs, waitUntilTitleIsNot, waitUntilTitleIsNot, waitUntilTitleIsNot, waitUntilTitleNotContains, waitUntilTitleNotContains, waitUntilTitleNotContains |
| Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.TableElement |
getTableCell, getTableCell, tableCellShouldContain, tableCellShouldContain, tableColumnShouldContain, tableColumnShouldContain, tableFooterShouldContain, tableFooterShouldContain, tableHeaderShouldContain, tableHeaderShouldContain, tableRowShouldContain, tableRowShouldContain, tableShouldContain, tableShouldContain |
| Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.SelectElement |
getListItems, getSelectedListLabel, getSelectedListLabels, getSelectedListValue, getSelectedListValues, listSelectionShouldBe, listShouldHaveNoSelections, pageShouldContainList, pageShouldContainList, pageShouldContainList, pageShouldNotContainList, pageShouldNotContainList, pageShouldNotContainList, selectAllFromList, selectFromList, selectFromListByIndex, selectFromListByLabel, selectFromListByValue, unselectFromList, unselectFromListByIndex, unselectFromListByLabel, unselectFromListByValue |
| 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.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 |
ROBOT_LIBRARY_SCOPE
public static String ROBOT_LIBRARY_SCOPE
- This means the same instance of this class is used throughout the
lifecycle of a Robot Framework test execution.
ROBOT_LIBRARY_DOC_FORMAT
public static String ROBOT_LIBRARY_DOC_FORMAT
- Documentation is in text format.
ROBOT_LIBRARY_VERSION
public static String ROBOT_LIBRARY_VERSION
- The actual version of this library. Loaded from maven project.
Selenium2Library
public Selenium2Library()
- Default constructor
Selenium2Library
public Selenium2Library(double timeout)
- Constructor
- Parameters:
timeout - Default timeout in seconds for all wait methods
Selenium2Library
public Selenium2Library(double timeout,
double implicitWait)
- Constructor
- Parameters:
timeout - Default timeout in seconds for all wait methodsimplicitWait - Selenium implicit wait time in seconds
Selenium2Library
public Selenium2Library(double timeout,
double implicitWait,
String runOnFailureKeyword)
- Constructor
- Parameters:
timeout - Default timeout in seconds for all wait methodsimplicitWait - Selenium implicit wait time in secondsrunOnFailureKeyword - Keyword to run opn failure
runOnFailureByAspectJ
public void runOnFailureByAspectJ()
- This method is called by the
com.github.markusbernhardt.selenium2library.aspects.RunOnFailureAspect in
case a exception is thrown in one of the public methods of a keyword
class.
Copyright © 2013. All Rights Reserved.