cryptoService, cucumberExpressionService, SECURE_MASK, userNameService
Constructor and Description |
---|
CommonSteps() |
Modifier and Type | Method and Description |
---|---|
void |
checkAlert(String messageOrKey)
Checks that a given page displays a html alert with a message.
|
void |
checkAlert(String page,
List<GherkinStepCondition> conditions)
Checks that a given page displays a html alert.
|
void |
checkElementNotDisplayed(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Deprecated.
As of release 4.1, replaced by
WaitSteps.waitInvisibilityOf(Page.PageElement, Boolean, List)
"I wait invisibility of {string}(\\?)"
Checks if an html element is not visible. |
void |
checkElementNotPresent(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Deprecated.
As of release 4.1, replaced by
WaitSteps.waitPresenceOfElementLocated(Page.PageElement, Boolean, List)
"The element {page-element} {should-shouldnot} be present(\\?)"
Checks if an html element is not present. |
void |
checkElementPresent(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Deprecated.
As of release 4.1, replaced by
WaitSteps.waitPresenceOfElementLocated(Page.PageElement, Boolean, List)
"The element {page-element} {should-shouldnot} be present(\\?)"
Checks if an html element is present. |
void |
checkElementVisible(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Deprecated.
As of release 4.1, replaced by
WaitSteps.waitVisibilityOf(Page.PageElement pageElement, Boolean not, List)
"I wait visibility of {string}(\\?)"
Checks if an html element is visible. |
void |
checkInputText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Checks if html input text contains expected value.
|
void |
checkMandatoryField(Page.PageElement pageElement,
String type,
List<GherkinStepCondition> conditions)
Checks that mandatory field is no empty with conditions.
|
void |
checkMandatoryFields(Map<String,String> mandatoryFields)
Check all mandatory fields.
|
void |
checkNotEmpty(String data,
String textOrKey,
List<GherkinStepCondition> conditions)
Generic method to check that the value given in parameters is not empty.
|
void |
checkRadioList(Page.PageElement pageElement,
String valueOrKey,
List<GherkinStepCondition> conditions)
Checks if radio list expected value with conditions.
|
void |
checkRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues)
Checks if radio list expected value using a map of keys/printed values.
|
void |
clearText(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Clears a html element with conditions.
|
void |
clickOn(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Click on html element if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
clickOnAndSwitchWindow(Page.PageElement pageElement,
String windowKey,
List<GherkinStepCondition> conditions)
Click on html element and switch window when the scenario contain more one windows (one more application for example), if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
clickOnByJs(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Click on html element using Javascript if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
clickOnXpathByJs(String xpath,
Page page,
List<GherkinStepCondition> conditions)
Click on html element using Javascript if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
doUntil(String actual,
String expected,
String key,
String breakCondition,
int tries,
List<GherkinConditionedLoopedStep> conditions)
Does steps execution until a given condition is unverified.
|
void |
loop(String actual,
String expected,
int times,
List<GherkinConditionedLoopedStep> steps)
Loops on steps execution for a specific number of times.
|
void |
passOver(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Simulates the mouse over a html element
|
void |
saveElementValue(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Save field in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
saveValue(Page.PageElement pageElement,
String targetKey,
List<GherkinStepCondition> conditions)
Save field in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
saveValueInDataOutputProvider(Page.PageElement pageElement,
String targetColumn,
List<GherkinStepCondition> conditions)
Save field in data output provider if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
selectCheckbox(Page.PageElement pageElement,
String value,
List<GherkinStepCondition> conditions)
Updates the value of a html checkbox element with conditions.
|
void |
selectCheckbox(Page.PageElement pageElement,
String value,
Map<String,Boolean> values)
Updates the value of a html checkbox element with conditions regarding the provided keys/values map.
|
void |
setText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions) |
void |
setText(String pageElement,
String textOrKey,
List<GherkinStepCondition> conditions) |
void |
switchFrame(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Switches to the given frame.
|
void |
updateDate(Page.PageElement pageElement,
String dateType,
String dateOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a date.
|
void |
updateList(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Update a html select input text with a text data (if it exists in html "option" list).
|
void |
updateRadioList(Page.PageElement pageElement,
String valueOrKey,
List<GherkinStepCondition> conditions)
Updates the value of a html radio element with conditions.
|
void |
updateRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues)
Updates the value of html radio element with conditions using a map of keys/printed values.
|
void |
updateText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a given text.
|
void |
updateTextAndSeleniumKeys(Page.PageElement pageElement,
org.openqa.selenium.Keys key,
String textOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a given text and then press org.openqa.selenium.Keys (ENTER, ESCAPE, ...).
|
void |
updateTextWithRamdomValueMatchRegexp(Page.PageElement pageElement,
String randRegex,
List<GherkinStepCondition> conditions)
Update a html input text with a random text.
|
void |
whileDo(String actual,
String expected,
String key,
String breakCondition,
int tries,
List<GherkinConditionedLoopedStep> conditions)
While a given condition is verified, does steps execution.
|
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="Si {string} v\u00e9rifie {string}, je fais {int} fois:") @Then(value="If {string} matches {string}, I do {int} times:") public void loop(String actual, String expected, int times, List<GherkinConditionedLoopedStep> steps)
actual
- actual value for global condition.expected
- expected value for global condition.times
- Number of loops.steps
- List of steps run in a loop.@Lorsque(value="Si {string} v\u00e9rifie {string}, je fais jusqu\'\u00e0 {string} respecte {string} avec {int} essais maxi:") @Then(value="If {string} matches {string}, I do until {string} respects {string} with {int} max tries:") public void doUntil(String actual, String expected, String key, String breakCondition, int tries, List<GherkinConditionedLoopedStep> conditions)
actual
- actual value for global condition.expected
- expected value for global condition.key
- key of 'expected' values ('actual' values)breakCondition
- 'expected' valuestries
- number of max tries (no infinity loop).conditions
- list of steps run in a loop.@Lorsque(value="Si {string} v\u00e9rifie {string}, Tant que {string} respecte {string} je fais avec {int} essais maxi:") @Then(value="If {string} matches {string}, While {string} respects {string} I do with {int} max tries:") public void whileDo(String actual, String expected, String key, String breakCondition, int tries, List<GherkinConditionedLoopedStep> conditions)
actual
- actual value for global condition.expected
- expected value for global condition.key
- key of 'expected' values ('actual' values)breakCondition
- 'expected' valuestries
- number of max tries (no infinity loop).conditions
- list of steps run in a loop.@Lorsque(value="Je v\u00e9rifie que {string} {string} n\'est pas vide(\\?)") @Given(value="I check that {string} {string} is not empty(\\?)") public void checkNotEmpty(String data, String textOrKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
ScenarioRegistry
to retrieve value if a key is provided.data
- Name of the value to checktextOrKey
- Is the new data (text or text in context (after a save))conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_EMPTY_DATA" message (no screenshot)FailureException
- if the scenario encounters a functional error@Lorsque(value="Je v\u00e9rifie les champs obligatoires:") @Given(value="I check mandatory fields:") public void checkMandatoryFields(Map<String,String> mandatoryFields) throws TechnicalException, FailureException
mandatoryFields
- is a Map of mandatory fieldsTechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_EMPTY_DATA" message (no screenshot)FailureException
- if the scenario encounters a functional error@Et(value="Je sauvegarde la valeur de {page-element}(\\?)") @And(value="I save the value of {page-element}(\\?)") public void saveElementValue(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND name of the field to save in memory. (sample: $demo.DemoPage-button)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 "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" or "FAIL_MESSAGE_UNABLE_TO_RETRIEVE_VALUE"
message (with screenshot, with exception)FailureException
- if the scenario encounters a functional error@Et(value="Je sauvegarde la valeur de {page-element} dans la cl\u00e9 {string} du contexte(\\?)") @And(value="I save the value of {page-element} in {string} context key(\\?)") public void saveValue(Page.PageElement pageElement, String targetKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND name of the field to save in memory. (sample: $demo.DemoPage-button)targetKey
- Target key to save retrieved value.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).FailureException
- if the scenario encounters a functional error (with message and screenshot)TechnicalException
- is thrown if the scenario encounters a technical error (format, configuration, data, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" or "FAIL_MESSAGE_UNABLE_TO_RETRIEVE_VALUE"@Et(value="Je sauvegarde la valeur de {page-element} dans la colonne {string} du fournisseur de donn\u00e9es en sortie(\\?)") @And(value="I save the value of {page-element} in {string} column of data output provider(\\?)") public void saveValueInDataOutputProvider(Page.PageElement pageElement, String targetColumn, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException, WarningException
pageElement
- The concerned page of field AND name of the field to save in data output provider. (sample: $demo.DemoPage-button)targetColumn
- Target column (in data output provider) to save retrieved value.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).FailureException
- if the scenario encounters a functional error (with message and screenshot)TechnicalException
- is thrown if the scenario encounters a technical error (format, configuration, data, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" or "FAIL_MESSAGE_UNABLE_TO_RETRIEVE_VALUE"WarningException
- if the scenario encounters a functional warning (with message and screenshot)@Quand(value="Je clique sur {page-element}(\\?)") @When(value="I click on {page-element}(\\?)") public void clickOn(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)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 "FAIL_MESSAGE_UNABLE_TO_OPEN_ON_CLICK" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional error@Quand(value="Je clique via js sur {page-element}(\\?)") @When(value="I click by js on {page-element}(\\?)") public void clickOnByJs(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_OPEN_ON_CLICK" message (with screenshot, with exception)FailureException
- if the scenario encounters a functional error@Quand(value="Je clique via js sur xpath {string} de {page} page(\\?)") @When(value="I click by js on xpath {string} from {page} page(\\?)") public void clickOnXpathByJs(String xpath, Page page, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
xpath
- xpath of html elementpage
- The concerned page of toClickconditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_OPEN_ON_CLICK" message (with screenshot, with exception)FailureException
- if the scenario encounters a functional error@Quand(value="Je clique sur {page-element} et passe sur {string} de type fen\u00eatre(\\?)") @When(value="I click on {page-element} and switch to {string} window(\\?)") public void clickOnAndSwitchWindow(Page.PageElement pageElement, String windowKey, List<GherkinStepCondition> conditions) throws FailureException, TechnicalException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)windowKey
- the key of window (popup, ...) Example: 'demo.Popup1DemoPage'.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).FailureException
- if the scenario encounters a functional errorTechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.@Quand(value="Je passe au dessus de {page-element}(\\?)") @When(value="I pass over {page-element}(\\?)") public void passOver(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)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 "FAIL_MESSAGE_UNABLE_TO_PASS_OVER_ELEMENT" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional error@Quand(value="Je mets \u00e0 jour la date {page-element} avec une {string} date {string}(\\?)") @When(value="I update date {page-element} with a {string} date {string}(\\?)") public void updateDate(Page.PageElement pageElement, String dateType, String dateOrKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)dateOrKey
- Is the new date (date or date in context (after a save))dateType
- 'future', 'future_strict', 'today' or 'any'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 a message (no screenshot, no exception)FailureException
- if the scenario encounters a functional error@Quand(value="Je mets \u00e0 jour la liste d\u00e9roulante {page-element} avec {string}(\\?)") @When(value="I update select list {page-element} with {string}(\\?)") public void updateList(Page.PageElement pageElement, String textOrKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
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 "FAIL_MESSAGE_ERROR_ON_INPUT" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional error@Quand(value="Je mets \u00e0 jour le texte {page-element} avec {string}(\\?)") @When(value="I update text {page-element} with {string}(\\?)") public void updateText(Page.PageElement pageElement, String textOrKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
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 "FAIL_MESSAGE_ERROR_ON_INPUT" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional error@Quand(value="Je remplace le texte {page-element} avec {string}(\\?)") @When(value="I set text {page-element} with {string}(\\?)") public void setText(Page.PageElement pageElement, String textOrKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
TechnicalException
FailureException
@Quand(value="Je remplace le texte {string} avec {string}(\\?)") @When(value="I set text {string} with {string}(\\?)") public void setText(String pageElement, String textOrKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
TechnicalException
FailureException
@Quand(value="Je mets \u00e0 jour le texte {page-element} avec une valeur al\u00e9atoire qui v\u00e9rifie {string}(\\?)") @When(value="I update text {page-element} with ramdom match {string}(\\?)") public void updateTextWithRamdomValueMatchRegexp(Page.PageElement pageElement, String randRegex, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)randRegex
- Is the new data (random value generated and match with randRegex)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 "FAIL_MESSAGE_ERROR_ON_INPUT" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional error@Quand(value="Je mets \u00e0 jour le texte {page-element} et entre {keyboard-key} avec {string}(\\?)") @When(value="I update text {page-element} and type {keyboard-key} with {string}(\\?)") public void updateTextAndSeleniumKeys(Page.PageElement pageElement, org.openqa.selenium.Keys key, String textOrKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)key
- contain org.openqa.selenium.Keys element.textOrKey
- Is the new data (text or text in context (after a save))conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- if the scenario encounters a technical errorFailureException
- if the scenario encounters a functional error@Lorsque(value="Je v\u00e9rifie le champ obligatoire {page-element} de type {string}(\\?)") @Then(value="I check mandatory field {page-element} of type {string}(\\?)") public void checkMandatoryField(Page.PageElement pageElement, String type, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)type
- Type of the field ('text', 'select'...). Only 'text' is implemented for the moment!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@Et(value="Je v\u00e9rifie le texte {page-element} avec {string}(\\?)") @And(value="I check text {page-element} with {string}(\\?)") public void checkInputText(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@Et(value="Je v\u00e9rifie la liste radio {page-element} avec {string}(\\?)") @And(value="I check radio list {page-element} with {string}(\\?)") public void checkRadioList(Page.PageElement pageElement, String valueOrKey, List<GherkinStepCondition> conditions) throws FailureException, TechnicalException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $bakery.DemoPage-rate)valueOrKey
- Is the new data (value or value 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@Et(value="Je v\u00e9rifie la liste radio {page-element} avec {string} \u00e0 partir de ces valeurs:") @And(value="I check radio list {page-element} with {string} from these values:") public void checkRadioList(Page.PageElement pageElement, String valueKeyOrKey, Map<String,String> printedValues) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)valueKeyOrKey
- Is valueKey (valueKey or input in context (after a save))printedValues
- is the display valueTechnicalException
- is throws if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_SELECT_RADIO_BUTTON" message (with screenshot, with exception)FailureException
- if the scenario encounters a functional error@Deprecated @Et(value="Je v\u00e9rifie que {page-element} est visible(\\?)") @And(value="I check that {page-element} is visible(\\?)") public void checkElementVisible(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws FailureException, TechnicalException
WaitSteps.waitVisibilityOf(Page.PageElement pageElement, Boolean not, List)
"I wait visibility of {string}(\\?)"
Checks if an html element is visible.pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)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 @Et(value="Je v\u00e9rifie que {page-element} n\'est pas visible(\\?)") @And(value="I check that {page-element} is not visible(\\?)") public void checkElementNotDisplayed(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws FailureException, TechnicalException
WaitSteps.waitInvisibilityOf(Page.PageElement, Boolean, List)
"I wait invisibility of {string}(\\?)"
Checks if an html element is not visible.pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)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 @Et(value="Je v\u00e9rifie que {page-element} est pr\u00e9sent(\\?)") @And(value="I check that {page-element} is present(\\?)") public void checkElementPresent(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws FailureException, TechnicalException
WaitSteps.waitPresenceOfElementLocated(Page.PageElement, Boolean, List)
"The element {page-element} {should-shouldnot} be present(\\?)"
Checks if an html element is present.pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)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 @Et(value="Je v\u00e9rifie que {page-element} n\'est pas pr\u00e9sent(\\?)") @And(value="I check that {page-element} is not present(\\?)") public void checkElementNotPresent(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws FailureException, TechnicalException
WaitSteps.waitPresenceOfElementLocated(Page.PageElement, Boolean, List)
"The element {page-element} {should-shouldnot} be present(\\?)"
Checks if an html element is not present.pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)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@Lorsque(value="Je v\u00e9rifie l\'absence d\'alerte dans {string}(\\?)") @Then(value="I check absence of alert in {string}(\\?)") public void checkAlert(String page, List<GherkinStepCondition> conditions) throws FailureException, TechnicalException
page
- The concerned pageconditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).FailureException
- if the scenario encounters a functional errorTechnicalException
- 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.@Et(value="Je v\u00e9rifie le message {string} sur l\'alerte") @And(value="I check message {string} on alert") public void checkAlert(String messageOrKey) throws TechnicalException, FailureException
messageOrKey
- Is message (message or message in context (after a save)) displayed on html alertFailureException
- if the scenario encounters a functional errorTechnicalException
- 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.@Et(value="Je mets \u00e0 jour la liste radio {page-element} avec {string}(\\?)") @And(value="I update radio list {page-element} with {string}(\\?)") public void updateRadioList(Page.PageElement pageElement, String valueOrKey, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)valueOrKey
- Is the value (value or value in context (after a save)) use for selectionconditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Failure with "FAIL_MESSAGE_UNABLE_TO_SELECT_RADIO_BUTTON" message (with screenshot)FailureException
- if the scenario encounters a functional error@Et(value="Je mets \u00e0 jour la liste radio {page-element} avec {string} \u00e0 partir de ces valeurs:") @And(value="I update radio list {page-element} with {string} from these values:") public void updateRadioList(Page.PageElement pageElement, String valueKeyOrKey, Map<String,String> printedValues) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)valueKeyOrKey
- Is valueKey (valueKey or input in context (after a save))printedValues
- is the display valueTechnicalException
- is throws if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_SELECT_RADIO_BUTTON" message (with screenshot, with exception)FailureException
- if the scenario encounters a functional error@Lorsque(value="Je mets \u00e0 jour la case \u00e0 cocher {page-element} avec {string}(\\?)") @Then(value="I update checkbox {page-element} with {string}(\\?)") public void selectCheckbox(Page.PageElement pageElement, String value, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)value
- To check or not ?conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- if the scenario encounters a technical errorFailureException
- if the scenario encounters a functional error@Lorsque(value="Je mets \u00e0 jour la case \u00e0 cocher {page-element} avec {string} \u00e0 partir de ces valeurs:") @Then(value="I update checkbox {page-element} with {string} from these values:") public void selectCheckbox(Page.PageElement pageElement, String value, Map<String,Boolean> values) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)value
- A key to map with 'values' to find the final right checkbox valuevalues
- A list of keys/values to map a scenario input value with a checkbox valueTechnicalException
- if the scenario encounters a technical errorFailureException
- if the scenario encounters a functional error@Quand(value="Je clarifie le texte dans {page-element}(\\?)") @When(value="I clear text in {page-element}(\\?)") public void clearText(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- if the scenario encounters a technical errorFailureException
- if the scenario encounters a functional error@Quand(value="Je passe au cadre {page-element}(\\?)") @When(value="I switch to {page-element} frame(\\?)") public void switchFrame(Page.PageElement pageElement, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND key of the PageElement representing a frame to switch to.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_SWITCH_FRAME" message (with screenshot, with exception)FailureException
- if the scenario encounters a functional errorCopyright © 2023 NoraUi. All rights reserved.