cryptoService, cucumberExpressionService, SECURE_MASK, userNameService
Constructor and Description |
---|
WaitSteps() |
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
@Lorsque(value="J\'attends {int} seconde(s)(\\?)") @Then(value="I wait {int} second(s)(\\?)") public void wait(int time, List<GherkinStepCondition> conditions) throws InterruptedException
time
- is time to waitconditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).InterruptedException
- Exception for the sleep@Lorsque(value="L\'attribut {string} de {page-element} {should-shouldnot} contenir {string}(\\?)") @Then(value="The attribute {string} of {page-element} {should-shouldnot} contain {string}(\\?)") public void waitAttributeContains(String attribute, Page.PageElement pageElement, Boolean not, String value, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'attribut {string} de {page-element} {should-shouldnot} \u00eatre \u00e9gale \u00e0 {string}(\\?)") @Then(value="The attribute {string} of {page-element} {should-shouldnot} be equals to {string}(\\?)") public void waitAttributeToBe(String attribute, Page.PageElement pageElement, Boolean not, String value, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'\u00e9l\u00e9ment {page-element} {should-shouldnot} \u00eatre cliquable(\\?)") @Then(value="The element {page-element} {should-shouldnot} be clickable(\\?)") public void waitElementToBeClickable(Page.PageElement pageElement, Boolean not, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'\u00e9l\u00e9ment {page-element} {should-shouldnot} \u00eatre s\u00e9lectionn\u00e9(\\?)") @Then(value="The element {page-element} {should-shouldnot} be selected(\\?)") public void waitElementToBeNotSelected(Page.PageElement pageElement, Boolean not, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'\u00e9l\u00e9ment {page-element} {is-isnot} invisible(\\?)") @Then(value="The element {page-element} {is-isnot} invisible(\\?)") public void waitInvisibilityOf(Page.PageElement pageElement, Boolean not, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)not
- boolean operatorconditions
- 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@Lorsque(value="L\'\u00e9l\u00e9ment {page-element} {should-shouldnot} \u00eatre invisible dans les {int} seconde(s)(\\?)") @Then(value="The element {page-element} {should-shouldnot} be invisible within {int} second(s)(\\?)") public void waitInvisibilityOf(Page.PageElement pageElement, Boolean not, int timeOutInSeconds, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)not
- boolean operatortimeOutInSeconds
- is custom timeout in secondsconditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is throws if you have a technical error (format, configuration, datas, ...) in NoraUi.FailureException
- if the scenario encounters a functional error.@Lorsque(value="L\'\u00e9l\u00e9ment {page-element} avec le texte {string} {should-shouldnot} \u00eatre invisible(\\?)") @Then(value="The element {page-element} avec le texte {string} {should-shouldnot} be invisible(\\?)") public void waitInvisibilityOfElementWithText(Page.PageElement pageElement, String text, Boolean not, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'\u00e9l\u00e9ment {page-element} avec le texte {string} {should-shouldnot} \u00eatre invisible dans les {int} seconde(s)(\\?)") @Then(value="The element {page-element} with the text {string} {should-shouldnot} be invisible within {int} second(s)(\\?)") public void waitInvisibilityOfElementWithTextWithTimeout(Page.PageElement pageElement, String text, Boolean not, int timeOutInSeconds, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="Le nombre d\'\u00e9lements {page-element} {should-shouldnot} \u00eatre \u00e9gale \u00e0 {int}(\\?)") @Then(value="The number of elements {page-element} {should-shouldnot} be equal to {int}(\\?)") public void waitNumberOfElementsToBe(Page.PageElement pageElement, Boolean not, int number, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="Le nombre d\'\u00e9l\u00e9ments {page-element} {should-shouldnot} \u00eatre inf\u00e9rieur \u00e0 {int}(\\?)") @Then(value="The number of elements {page-element} {should-shouldnot} be less than {int}(\\?)") public void waitNumberOfElementsToBeLessThan(Page.PageElement pageElement, Boolean not, Integer number, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="Le nombre d\'\u00e9l\u00e9ments {page-element} {should-shouldnot} \u00eatre sup\u00e9rieur \u00e0 {int}(\\?)") @Then(value="The number of elements {page-element} {should-shouldnot} be more than {int}(\\?)") public void waitNumberOfElementsToBeMoreThan(Page.PageElement pageElement, Boolean not, Integer number, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="Le nombre de fen\u00eatres {should-shouldnot} \u00eatre {int}(\\?)") @Then(value="The number of windows {should-shouldnot} be {int}(\\?)") public void waitNumberOfWindowsToBe(Boolean not, Integer expectedNumberOfWindows, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'\u00e9l\u00e9ment {page-element} {should-shouldnot} \u00eatre pr\u00e9sent(\\?)") @Then(value="The element {page-element} {should-shouldnot} be present(\\?)") public void waitPresenceOfElementLocated(Page.PageElement pageElement, Boolean not, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="Les \u00e9l\u00e9ments imbriqu\u00e9s {page-element} et {page-element} {should-shouldnot} \u00eatre pr\u00e9sents(\\?)") @Then(value="Nested elements {page-element} and {page-element} {should-shouldnot} be present(\\?)") public void waitPresenceOfNestedElementLocatedBy(Page.PageElement pageElement, Page.PageElement childPageElement, Boolean not, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'\u00e9l\u00e9ment {page-element} {should-shouldnot} p\u00e9rimer dans les {int} seconde(s)(\\?)") @Then(value="The element {page-element} {should-shouldnot} become stale within the {int} second(s)(\\?)") public void waitStalenessOf(Page.PageElement pageElement, Boolean not, int time, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)not
- boolean operatortime
- is custom timeoutconditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is throws if you have a technical error (format, configuration, datas, ...) in NoraUi.FailureException
- if the scenario encounters a functional error@Lorsque(value="Le texte de {page-element} {should-shouldnot} respecter {string}(\\?)") @Then(value="The text of {page-element} {should-shouldnot} respect {string}(\\?)") public void waitTextMatches(Page.PageElement pageElement, Boolean not, String regexp, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="Le texte de {page-element} {should-shouldnot} \u00eatre {string}(\\?)") @Then(value="The text of {page-element} {should-shouldnot} be {string}(\\?)") public void waitTextToBe(Page.PageElement pageElement, Boolean not, String value, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="Le texte de {page-element} {should-shouldnot} contenir {string}(\\?)") @Then(value="The text of {page-element} {should-shouldnot} contain {string}(\\?)") public void waitTextToBePresentInElementLocated(Page.PageElement pageElement, Boolean not, String text, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="La valeur de l\'\u00e9l\u00e9ment {page-element} {should-shouldnot} \u00eatre {string}(\\?)") @Then(value="The value of element {page-element} {should-shouldnot} be {string}(\\?)") public void waitTextToBePresentInElementValue(Page.PageElement pageElement, Boolean not, String text, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)not
- boolean operatortext
- to be present in the value attribute of the element found by the locator.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is throws if you have a technical error (format, configuration, datas, ...) in NoraUi.FailureException
- if the scenario encounters a functional error@Lorsque(value="Le titre {should-shouldnot} contenir {string}(\\?)") @Then(value="Title {should-shouldnot} contain {string}(\\?)") public void waitTitleContains(Boolean not, String title, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="Le titre {should-shouldnot} \u00eatre \u00e9gale \u00e0 {string}(\\?)") @Then(value="Title {should-shouldnot} be equal to {string}(\\?)") public void waitTitleIs(Boolean not, String title, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'url courante {should-shouldnot} contenir {string}(\\?)") @Then(value="Current url {should-shouldnot} contain {string}(\\?)") public void waitUrlContains(Boolean not, String fraction, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'url courante {should-shouldnot} respecter {string}(\\?)") @Then(value="Current url {should-shouldnot} respect {string}(\\?)") public void waitUrlMatches(Boolean not, String regex, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Lorsque(value="L\'url courante {should-shouldnot} \u00eatre \u00e9gale \u00e0 {string}(\\?)") @Then(value="Current url {should-shouldnot} be equal to {string}(\\?)") public void waitUrlToBe(Boolean not, String url, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Alors(value="L\'\u00e9l\u00e9ment {page-element} {is-isnot} visible(\\?)") @Then(value="The element {page-element} {is-isnot} visible(\\?)") public void waitVisibilityOf(Page.PageElement pageElement, Boolean not, List<GherkinStepCondition> conditions) throws FailureException
FailureException
@Alors(value="Les \u00e9l\u00e9ments imbriqu\u00e9s {page-element} et {page-element} {should-shouldnot} \u00eatre visibles(\\?)") @Then(value="Nested elements {page-element} and {page-element} {should-shouldnot} be visible(\\?)") public void waitVisibilityOfNestedElementsLocatedBy(Page.PageElement pageElement, Boolean not, Page.PageElement childPageElement, List<GherkinStepCondition> conditions) throws FailureException
FailureException
Copyright © 2023 NoraUi. All rights reserved.