com.github.markusbernhardt.selenium2library.keywords
Class Selenium2LibraryEnhancement

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
                          extended by com.github.markusbernhardt.selenium2library.keywords.RunOnFailure
                              extended by com.github.markusbernhardt.selenium2library.keywords.Screenshot
                                  extended by com.github.markusbernhardt.selenium2library.keywords.SelectElement
                                      extended by com.github.markusbernhardt.selenium2library.keywords.TableElement
                                          extended by com.github.markusbernhardt.selenium2library.keywords.Waiting
                                              extended by com.github.markusbernhardt.selenium2library.keywords.Selenium2LibraryEnhancement
Direct Known Subclasses:
Selenium2Library

public class Selenium2LibraryEnhancement
extends Waiting


Nested Class Summary
 
Nested classes/interfaces inherited from class com.github.markusbernhardt.selenium2library.keywords.Waiting
Waiting.WaitUntilFunction
 
Field Summary
 
Fields inherited from class com.github.markusbernhardt.selenium2library.keywords.RunOnFailure
runningOnFailureRoutine, runOnFailureKeyword, runOnFailurePythonInterpreter
 
Fields inherited from class com.github.markusbernhardt.selenium2library.keywords.Logging
loggingPythonInterpreter, 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
Selenium2LibraryEnhancement()
           
 
Method Summary
 void addLocationStrategy(String strategyName, String functionDefinition)
           
 void addLocationStrategy(String strategyName, String functionDefinition, String delimiter)
           
 void elementShouldBeClickable(String locator)
           
 void elementShouldBeClickable(String locator, String message)
           
 void elementShouldBeSelected(String locator)
           
 void elementShouldBeSelected(String locator, String message)
           
 void elementShouldNotBeClickable(String locator)
           
 void elementShouldNotBeClickable(String locator, String message)
           
 void elementShouldNotBeSelected(String locator)
           
 void elementShouldNotBeSelected(String locator, String message)
           
 void elementShouldNotContain(String locator, String expected)
           
 void elementShouldNotContain(String locator, String expected, String message)
           
 void elementTextShouldNotBe(String locator, String expected)
           
 void elementTextShouldNotBe(String locator, String expected, String message)
           
 String getRemoteCapabilities()
           
 String getRemoteSessionId()
           
 String getSystemInfo()
           
protected  boolean isClickable(String locator)
           
protected  boolean isSelected(String locator)
           
 String logRemoteCapabilities()
           
 String logRemoteSessionId()
           
 String logSystemInfo()
           
 void waitUntilElementIsClickable(String locator)
           
 void waitUntilElementIsClickable(String locator, String timestr)
           
 void waitUntilElementIsClickable(String locator, String timestr, String error)
           
 void waitUntilElementIsNotClickable(String locator)
           
 void waitUntilElementIsNotClickable(String locator, String timestr)
           
 void waitUntilElementIsNotClickable(String locator, String timestr, String error)
           
 void waitUntilElementIsNotSelected(String locator)
           
 void waitUntilElementIsNotSelected(String locator, String timestr)
           
 void waitUntilElementIsNotSelected(String locator, String timestr, String error)
           
 void waitUntilElementIsNotVisible(String locator)
           
 void waitUntilElementIsNotVisible(String locator, String timestr)
           
 void waitUntilElementIsNotVisible(String locator, String timestr, String error)
           
 void waitUntilElementIsSelected(String locator)
           
 void waitUntilElementIsSelected(String locator, String timestr)
           
 void waitUntilElementIsSelected(String locator, String timestr, String error)
           
 void waitUntilElementIsSuccessfullyClicked(String locator)
           
 void waitUntilElementIsSuccessfullyClicked(String locator, String timestr)
           
 void waitUntilElementIsSuccessfullyClicked(String locator, String timestr, String error)
           
 void waitUntilElementIsVisible(String locator)
           
 void waitUntilElementIsVisible(String locator, String timestr)
           
 void waitUntilElementIsVisible(String locator, String timestr, String error)
           
 void waitUntilPageNotContains(String condition)
           
 void waitUntilPageNotContains(String condition, String timestr)
           
 void waitUntilPageNotContains(String text, String timestr, String error)
           
 void waitUntilPageNotContainsElement(String locator)
           
 void waitUntilPageNotContainsElement(String locator, String timestr)
           
 void waitUntilPageNotContainsElement(String locator, String timestr, String error)
           
 void waitUntilTitleContains(String title)
           
 void waitUntilTitleContains(String title, String timestr)
           
 void waitUntilTitleContains(String title, String timestr, String error)
           
 void waitUntilTitleIs(String title)
           
 void waitUntilTitleIs(String title, String timestr)
           
 void waitUntilTitleIs(String title, String timestr, String error)
           
 void waitUntilTitleIsNot(String title)
           
 void waitUntilTitleIsNot(String title, String timestr)
           
 void waitUntilTitleIsNot(String title, String timestr, String error)
           
 void waitUntilTitleNotContains(String title)
           
 void waitUntilTitleNotContains(String title, String timestr)
           
 void waitUntilTitleNotContains(String title, String timestr, String error)
           
 
Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.Waiting
waitForCondition, waitForCondition, waitForCondition, waitUntil, waitUntilPageContains, waitUntilPageContains, waitUntilPageContains, waitUntilPageContainsElement, waitUntilPageContainsElement, waitUntilPageContainsElement
 
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.Screenshot
capturePageScreenshot, capturePageScreenshot
 
Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.RunOnFailure
registerKeywordToRunOnFailure, runOnFailure
 
Methods inherited from class com.github.markusbernhardt.selenium2library.keywords.Logging
debug, getLogDir, html, info, log, log0, logList, logList, trace, warn
 
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
 

Constructor Detail

Selenium2LibraryEnhancement

public Selenium2LibraryEnhancement()
Method Detail

getSystemInfo

public String getSystemInfo()

logSystemInfo

public String logSystemInfo()

getRemoteCapabilities

public String getRemoteCapabilities()

logRemoteCapabilities

public String logRemoteCapabilities()

getRemoteSessionId

public String getRemoteSessionId()

logRemoteSessionId

public String logRemoteSessionId()

addLocationStrategy

public void addLocationStrategy(String strategyName,
                                String functionDefinition)

addLocationStrategy

public void addLocationStrategy(String strategyName,
                                String functionDefinition,
                                String delimiter)

waitUntilPageNotContains

public void waitUntilPageNotContains(String condition)

waitUntilPageNotContains

public void waitUntilPageNotContains(String condition,
                                     String timestr)

waitUntilPageNotContains

public void waitUntilPageNotContains(String text,
                                     String timestr,
                                     String error)

waitUntilPageNotContainsElement

public void waitUntilPageNotContainsElement(String locator)

waitUntilPageNotContainsElement

public void waitUntilPageNotContainsElement(String locator,
                                            String timestr)

waitUntilPageNotContainsElement

public void waitUntilPageNotContainsElement(String locator,
                                            String timestr,
                                            String error)

waitUntilElementIsVisible

public void waitUntilElementIsVisible(String locator)

waitUntilElementIsVisible

public void waitUntilElementIsVisible(String locator,
                                      String timestr)

waitUntilElementIsVisible

public void waitUntilElementIsVisible(String locator,
                                      String timestr,
                                      String error)

waitUntilElementIsNotVisible

public void waitUntilElementIsNotVisible(String locator)

waitUntilElementIsNotVisible

public void waitUntilElementIsNotVisible(String locator,
                                         String timestr)

waitUntilElementIsNotVisible

public void waitUntilElementIsNotVisible(String locator,
                                         String timestr,
                                         String error)

waitUntilTitleContains

public void waitUntilTitleContains(String title)

waitUntilTitleContains

public void waitUntilTitleContains(String title,
                                   String timestr)

waitUntilTitleContains

public void waitUntilTitleContains(String title,
                                   String timestr,
                                   String error)

waitUntilTitleNotContains

public void waitUntilTitleNotContains(String title)

waitUntilTitleNotContains

public void waitUntilTitleNotContains(String title,
                                      String timestr)

waitUntilTitleNotContains

public void waitUntilTitleNotContains(String title,
                                      String timestr,
                                      String error)

waitUntilTitleIs

public void waitUntilTitleIs(String title)

waitUntilTitleIs

public void waitUntilTitleIs(String title,
                             String timestr)

waitUntilTitleIs

public void waitUntilTitleIs(String title,
                             String timestr,
                             String error)

waitUntilTitleIsNot

public void waitUntilTitleIsNot(String title)

waitUntilTitleIsNot

public void waitUntilTitleIsNot(String title,
                                String timestr)

waitUntilTitleIsNot

public void waitUntilTitleIsNot(String title,
                                String timestr,
                                String error)

elementShouldBeSelected

public void elementShouldBeSelected(String locator)

elementShouldBeSelected

public void elementShouldBeSelected(String locator,
                                    String message)

elementShouldNotBeSelected

public void elementShouldNotBeSelected(String locator)

elementShouldNotBeSelected

public void elementShouldNotBeSelected(String locator,
                                       String message)

waitUntilElementIsSelected

public void waitUntilElementIsSelected(String locator)

waitUntilElementIsSelected

public void waitUntilElementIsSelected(String locator,
                                       String timestr)

waitUntilElementIsSelected

public void waitUntilElementIsSelected(String locator,
                                       String timestr,
                                       String error)

waitUntilElementIsNotSelected

public void waitUntilElementIsNotSelected(String locator)

waitUntilElementIsNotSelected

public void waitUntilElementIsNotSelected(String locator,
                                          String timestr)

waitUntilElementIsNotSelected

public void waitUntilElementIsNotSelected(String locator,
                                          String timestr,
                                          String error)

elementShouldBeClickable

public void elementShouldBeClickable(String locator)

elementShouldBeClickable

public void elementShouldBeClickable(String locator,
                                     String message)

elementShouldNotBeClickable

public void elementShouldNotBeClickable(String locator)

elementShouldNotBeClickable

public void elementShouldNotBeClickable(String locator,
                                        String message)

waitUntilElementIsClickable

public void waitUntilElementIsClickable(String locator)

waitUntilElementIsClickable

public void waitUntilElementIsClickable(String locator,
                                        String timestr)

waitUntilElementIsClickable

public void waitUntilElementIsClickable(String locator,
                                        String timestr,
                                        String error)

waitUntilElementIsSuccessfullyClicked

public void waitUntilElementIsSuccessfullyClicked(String locator)

waitUntilElementIsSuccessfullyClicked

public void waitUntilElementIsSuccessfullyClicked(String locator,
                                                  String timestr)

waitUntilElementIsSuccessfullyClicked

public void waitUntilElementIsSuccessfullyClicked(String locator,
                                                  String timestr,
                                                  String error)

waitUntilElementIsNotClickable

public void waitUntilElementIsNotClickable(String locator)

waitUntilElementIsNotClickable

public void waitUntilElementIsNotClickable(String locator,
                                           String timestr)

waitUntilElementIsNotClickable

public void waitUntilElementIsNotClickable(String locator,
                                           String timestr,
                                           String error)

elementShouldNotContain

public void elementShouldNotContain(String locator,
                                    String expected)

elementShouldNotContain

public void elementShouldNotContain(String locator,
                                    String expected,
                                    String message)

elementTextShouldNotBe

public void elementTextShouldNotBe(String locator,
                                   String expected)

elementTextShouldNotBe

public void elementTextShouldNotBe(String locator,
                                   String expected,
                                   String message)

isClickable

protected boolean isClickable(String locator)

isSelected

protected boolean isSelected(String locator)


Copyright © 2013. All Rights Reserved.