cryptoService, cucumberExpressionService, SECURE_MASK, userNameService
Constructor and Description |
---|
ExpectSteps() |
Modifier and Type | Method and Description |
---|---|
static org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> |
atLeastOneOfTheseElementsIsPresent(org.openqa.selenium.By... locators)
Deprecated.
As of release 4.1, replaced by
NoraUiExpectedConditions.atLeastOneOfTheseElementsIsPresent(By... locators)
Expects that at least one of the given elements is present. |
void |
expectText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Checks if an html element contains expected value.
|
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
presenceOfMaximumElementsLocatedBy(org.openqa.selenium.By locator,
int nb)
Deprecated.
As of release 4.1, replaced by
NoraUiExpectedConditions.presenceOfMaximumElementsLocatedBy(By, int)
An expectation for checking that nb elements that match (or less) the locator are present on the web page. |
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
presenceOfMinimumElementsLocatedBy(org.openqa.selenium.By locator,
int nb)
Deprecated.
As of release 4.1, replaced by
NoraUiExpectedConditions.presenceOfMinimumElementsLocatedBy(By, int)
An expectation for checking that nb elements that match (or more) the locator are present on the web page. |
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
presenceOfNbElementsLocatedBy(org.openqa.selenium.By locator,
int nb)
Deprecated.
As of release 4.1, replaced by
NoraUiExpectedConditions.presenceOfNbElementsLocatedBy(By locator, int nb)
An expectation for checking that nb elements that match the locator are present on the web page. |
static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
textToBeEqualsToExpectedValue(org.openqa.selenium.By locator,
String value)
Deprecated.
As of release 4.1, replaced by
NoraUiExpectedConditions.textToBeEqualsToExpectedValue(By, String)
Expects that the target element contains the given value as text.
The inner text and 'value' attribute of the element are checked. |
static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> |
visibilityOfNbElementsLocatedBy(org.openqa.selenium.By locator,
int nb)
Deprecated.
As of release 4.1, replaced by
NoraUiExpectedConditions.visibilityOfNbElementsLocatedBy(By, int)
An expectation for checking that nb elements present on the web page that match the locator
are visible. Visibility means that the elements are not only displayed but also have a height
and width that is greater than 0. |
static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> |
waitForLoad()
Deprecated.
As of release 4.1, replaced by
NoraUiExpectedConditions.waitForLoad()
Expects that the target page is completely loaded. |
checkAlert, checkElementPresence, checkElementVisible, checkInputText, checkInputText, checkMandatoryTextField, checkRadioList, checkRadioList, checkStep, checkText, checkTextContains, checkTextSelectedInList, clearText, clearText, clearText, clearText, clickOn, clickOn, clickOnByJs, clickOnByJs, clickOnByJs, clickOnByJs, displayConcernedElementsAtTheBeginningOfMethod, displayMessageAtTheBeginningOfMethod, displayMessageAtTheBeginningOfMethod, expectText, expectText, expectTextContains, expectTextContains, getAlertMessage, getDriver, getTextOrKey, passOver, readValueTextField, runAllStepsInLoop, saveElementValue, saveElementValue, selectCheckbox, selectCheckbox, setText, setText, setText, switchFrame, updateDateValidated, updateList, updateRadioList, updateRadioList, updateText, updateText, updateText, updateText, uploadFile
@Et(value="Je m\'attends \u00e0 avoir {page-element} avec le texte {string}(\\?)") @And(value="I expect to have {page-element} with the text {string}(\\?)") public void expectText(Page.PageElement pageElement, String textOrKey, List<GherkinStepCondition> conditions) throws FailureException, TechnicalException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)textOrKey
- Is the new data (text or text in context (after a save))conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is throws if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with message and with screenshot and with exception if functional error but no screenshot and no exception if technical error.FailureException
- if the scenario encounters a functional error@Deprecated public static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> textToBeEqualsToExpectedValue(org.openqa.selenium.By locator, String value)
NoraUiExpectedConditions.textToBeEqualsToExpectedValue(By, String)
Expects that the target element contains the given value as text.
The inner text and 'value' attribute of the element are checked.locator
- is the selenium locatorvalue
- is the expected value@Deprecated public static org.openqa.selenium.support.ui.ExpectedCondition<org.openqa.selenium.WebElement> atLeastOneOfTheseElementsIsPresent(org.openqa.selenium.By... locators)
NoraUiExpectedConditions.atLeastOneOfTheseElementsIsPresent(By... locators)
Expects that at least one of the given elements is present.locators
- The list of elements identified by their locators@Deprecated public static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> presenceOfNbElementsLocatedBy(org.openqa.selenium.By locator, int nb)
NoraUiExpectedConditions.presenceOfNbElementsLocatedBy(By locator, int nb)
An expectation for checking that nb elements that match the locator are present on the web page.locator
- Locator of elementsnb
- Expected number of elements@Deprecated public static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> presenceOfMinimumElementsLocatedBy(org.openqa.selenium.By locator, int nb)
NoraUiExpectedConditions.presenceOfMinimumElementsLocatedBy(By, int)
An expectation for checking that nb elements that match (or more) the locator are present on the web page.locator
- Locator of elementsnb
- Expected number of elements@Deprecated public static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> presenceOfMaximumElementsLocatedBy(org.openqa.selenium.By locator, int nb)
NoraUiExpectedConditions.presenceOfMaximumElementsLocatedBy(By, int)
An expectation for checking that nb elements that match (or less) the locator are present on the web page.locator
- Locator of elementsnb
- Expected number of elements@Deprecated public static org.openqa.selenium.support.ui.ExpectedCondition<List<org.openqa.selenium.WebElement>> visibilityOfNbElementsLocatedBy(org.openqa.selenium.By locator, int nb)
NoraUiExpectedConditions.visibilityOfNbElementsLocatedBy(By, int)
An expectation for checking that nb elements present on the web page that match the locator
are visible. Visibility means that the elements are not only displayed but also have a height
and width that is greater than 0.locator
- Locator of elementnb
- Expected number of elements@Deprecated public static org.openqa.selenium.support.ui.ExpectedCondition<Boolean> waitForLoad()
NoraUiExpectedConditions.waitForLoad()
Expects that the target page is completely loaded.Copyright © 2023 NoraUi. All rights reserved.