Skip navigation links
A C D G L M P R S T V W 

A

absenceOfWebElement() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
Allows to check for the absence of a web element. See https://stackoverflow.com/questions/6533597/webdriver-how-to-check-if-an-page-object-web-element-exists which is referencing https://groups.google.com/forum/#!topic/webdriver/kJqbbLVo40E for an explanation why this is a good if not the only way to perform the check.
apply() - Method in class de.richtercloud.selenium.tools.SeleniumHelper.TextToBePresentInElementWithText
 
assertMessagesContains() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
assertMessagesContains() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
assertMessagesContainsAny() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Checks whether any string in text is contained in the p:messages element messages using SeleniumHelper.webDriverWait and returns after the first match or fails using MessageTextNotContainedException if none of texts match. Depending on the Selenium configuration this might a TimeoutException for every non-matching string in texts which can be ignored.
assertResponseCodeEquals() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
Compares the response code of uRLConnection to responseCode
assertResponseCodeEquals() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
Compares the response code of uRLConnection to responseCode
assertThat() - Static method in class de.richtercloud.selenium.tools.SeleniumAssertionHelper
 

C

createFluentWait() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Factory method for tests which has to be used until support for mocking constructors via instrumentalisation with PowerMockito works in JUnit 5 (see comments in SeleniumHelperTest.testAssertMessagesContainsAny for details and an issue report link).
createMessagePermutation() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
Creates the permutation of texts which might be useful in SeleniumHelper.assertMessagesContainsAny in order to reflect that validation constraint violoations are generally in undefined order since Validator.validate returns a Set.This methods creates n faculty (n!) items for n items in text which can take a long time to check (five items can already take up to a minute). Note that the type of the collection used for texts determines whether the return value contains the item more than once or not. An example for steam fetichist (involving SteamEx stream extension): createMessagePermutation(StreamEx.of(entities.stream()) .map(prop -> String.format("invalid: key '%s' mustn't be mapped to null", prop.getName())) .append("invalid: mapping for this entity isn't valid. Details should have been given to you.") .collect(Collectors.toSet())) .stream() .map(perm -> StreamEx.of(perm) .joining("\n", String.format("%s\n" + "The following constraints are violated:\n", BackingBean.X_FAILED_ERROR_SUMMARY), String.format("\nFix the corresponding values in the components."))) //joining isn't necessary because \n could have been //added to each of the permutation items, this was //used as a way to get to know the awesome StreamEx //library .collect(Collectors.toSet());
createMessagePermutation() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
 
createWebDriverWait() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 

D

de.richtercloud.selenium.tools - package de.richtercloud.selenium.tools
 

G

getText() - Method in class de.richtercloud.selenium.tools.SeleniumHelper.TextToBePresentInElementWithText
 

L

logDOMTree() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Logs the current state of the DOM tree by executing return document.childNodes[1].outerHTML; in browser.
logPageSource() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
logPageSource() - Static method in class de.richtercloud.selenium.tools.WaitExceptionActions
 
logPageSourcePretty() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
logPageSourcePretty() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Logs the page source retrieved from browser to logger as info message.
logPageSourcePretty() - Static method in class de.richtercloud.selenium.tools.WaitExceptionActions
 
logPageSourceURLPretty() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 

M

MessageTextNotContainedException - Exception in de.richtercloud.selenium.tools
 
MessageTextNotContainedException() - Constructor for exception de.richtercloud.selenium.tools.MessageTextNotContainedException
 
MessageTextNotContainedException() - Constructor for exception de.richtercloud.selenium.tools.MessageTextNotContainedException
 
MISSING_DOCTYPE_MESSAGE_MATCHER - Static variable in class de.richtercloud.selenium.tools.SeleniumHelper
Accounts for the fact that some Selenium driver implementations don't include the doctype in their page source return value, but we might want to evaluate the driver's page source rather than the real page's source.

P

PAGE_SOURCE_END_MARKER_DEFAULT - Static variable in class de.richtercloud.selenium.tools.SeleniumHelper
 
PAGE_SOURCE_START_MARKER_DEFAULT - Static variable in class de.richtercloud.selenium.tools.SeleniumHelper
 
PageSourceInvalidException - Exception in de.richtercloud.selenium.tools
 
PageSourceInvalidException() - Constructor for exception de.richtercloud.selenium.tools.PageSourceInvalidException
Creates a new page source invalid exception using violations to construct the exception message.
perform() - Method in interface de.richtercloud.selenium.tools.WaitExceptionAction
 

R

randomString() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
Wrapper around random string generation which allows to quickly avoid temporary problems like Chrome Selenium driver not accepting unicode characters outside Basic Multilingual Plane (BMP) (asked https://stackoverflow.com/questions/46950897/how-to-produce-random-basic-multilingual-plane-bmp-strings-in-java for inputs)
ResponseCodeUnequalsException - Exception in de.richtercloud.selenium.tools
 
ResponseCodeUnequalsException() - Constructor for exception de.richtercloud.selenium.tools.ResponseCodeUnequalsException
 
ResponseCodeUnequalsException() - Constructor for exception de.richtercloud.selenium.tools.ResponseCodeUnequalsException
 
retrieveMessagesText() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
retrievePlainText() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
 
retrieveSlideMenuItem() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
Retrieves a specific menu item in the nested submenus opened based on the specified indices assuming that all menu items are links.
retrieveSlideMenuItems() - Static method in class de.richtercloud.selenium.tools.SeleniumHelper
Retrieves all menu items in the nested submenus opened based on the specified indices assuming that all menu items are links.

S

screenshot() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Takes a screenshot with description #NO_DESCRIPTION.
screenshot() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Takes a screenshot of browser and stores it according to the value of the system property #SCREENSHOT_OUTPUT_MODE_PROPERTY_NAME while managing the numbering and description in file names.
screenshot() - Static method in class de.richtercloud.selenium.tools.WaitExceptionActions
 
SCREENSHOT_END_MARKER_DEFAULT - Static variable in class de.richtercloud.selenium.tools.SeleniumHelper
 
SCREENSHOT_START_MARKER_DEFAULT - Static variable in class de.richtercloud.selenium.tools.SeleniumHelper
 
screenshotFullPage() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
screenshotFullPage() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
screenshotFullPage() - Static method in class de.richtercloud.selenium.tools.WaitExceptionActions
 
SeleniumAssertionHelper - Class in de.richtercloud.selenium.tools
 
SeleniumHelper - Class in de.richtercloud.selenium.tools
Provides helper methods for Selenium functional tests. Wraps counters for screenshots and other states which require initialization.
SeleniumHelper() - Constructor for class de.richtercloud.selenium.tools.SeleniumHelper
Creates a new SeleniumHelper using the defaults of #SeleniumHelper(int) and #WEB_DRIVER_WAIT_TIMEOUT_DEFAULT for the web driver wait timeout
SeleniumHelper() - Constructor for class de.richtercloud.selenium.tools.SeleniumHelper
Creates a new SeleniumHelper using default values #SCREENSHOT_START_MARKER_DEFAULT, #SCREENSHOT_END_MARKER_DEFAULT, #PAGE_SOURCE_START_MARKER_DEFAULT, #PAGE_SOURCE_END_MARKER_DEFAULT and a temporary screenshot directory
SeleniumHelper() - Constructor for class de.richtercloud.selenium.tools.SeleniumHelper
 
SeleniumHelper() - Constructor for class de.richtercloud.selenium.tools.SeleniumHelper
 
SeleniumHelper() - Constructor for class de.richtercloud.selenium.tools.SeleniumHelper
Creates a new SeleniumHelper.
SeleniumHelper() - Constructor for class de.richtercloud.selenium.tools.SeleniumHelper
 
SeleniumHelper.TextToBePresentInElementWithText - Class in de.richtercloud.selenium.tools
Allows to retrieve the text parameter passed to ExpectedConditions#textToBePresentInElement(org.openqa.selenium.WebElement, java.lang.String) as well as test the type which is useful for unit testing.

T

TextToBePresentInElementWithText() - Constructor for class de.richtercloud.selenium.tools.SeleniumHelper.TextToBePresentInElementWithText
 
toString() - Method in class de.richtercloud.selenium.tools.SeleniumHelper.TextToBePresentInElementWithText
 

V

validatePageSource() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
validatePageSource() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
validatePageSource() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 

W

WaitExceptionAction - Interface in de.richtercloud.selenium.tools
Values represent different actions to take on exceptions during waiting for conditions.
WaitExceptionActions - Class in de.richtercloud.selenium.tools
 
WEB_DRIVER_WAIT_TIMEOUT_DEFAULT - Static variable in class de.richtercloud.selenium.tools.SeleniumHelper
 
webDriverWait() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
webDriverWait() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
 
webDriverWait() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Creates a WebDriverWait and allows the timeout configuration in this instance to be overridden (while other configuration parameters of this instance can still be used).
webDriverWait() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Creates a WebDriverWait and allows the timeout configuration in this instance to be overridden (while other configuration parameters of this instance can still be used).
webDriverWait() - Method in class de.richtercloud.selenium.tools.SeleniumHelper
Creates a WebDriverWait and allows the timeout configuration in this instance to be overridden (while other configuration parameters of this instance can still be used).
WebDriverWaitException - Exception in de.richtercloud.selenium.tools
 
WebDriverWaitException() - Constructor for exception de.richtercloud.selenium.tools.WebDriverWaitException
 
WebDriverWaitException() - Constructor for exception de.richtercloud.selenium.tools.WebDriverWaitException
 
WebDriverWaitException() - Constructor for exception de.richtercloud.selenium.tools.WebDriverWaitException
 
A C D G L M P R S T V W 
Skip navigation links