public abstract class Step extends Object implements IStep
Modifier and Type | Field and Description |
---|---|
protected CryptoService |
cryptoService |
protected CucumberExpressionService |
cucumberExpressionService |
protected static String |
SECURE_MASK |
protected UserNameService |
userNameService |
Modifier | Constructor and Description |
---|---|
protected |
Step() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAlert(Page page)
Checks that a given page displays a html alert.
|
protected void |
checkElementPresence(Page.PageElement pageElement,
boolean present,
Object... args)
Checks if an html element (PageElement) is displayed.
|
protected void |
checkElementVisible(Page.PageElement pageElement,
boolean displayed,
Object... args)
Checks if an html element (PageElement) is displayed.
|
protected boolean |
checkInputText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if input text contains expected value.
|
protected boolean |
checkInputText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if input text contains expected value.
|
protected boolean |
checkMandatoryTextField(Page.PageElement pageElement,
Object... args)
Checks mandatory text field.
|
protected boolean |
checkRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues,
Object... args)
Checks that given value is matching the selected radio list button by value (value corresponding to key "index").
|
protected boolean |
checkRadioList(Page.PageElement pageElement,
String valueOrKey,
Object... args)
Checks that given value is matching the selected radio list button.
|
void |
checkStep(IPage page)
checkStep call checkPage
|
protected void |
checkText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if HTML text equals expected value.
|
protected void |
checkTextContains(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if HTML text contains expected value.
|
protected boolean |
checkTextSelectedInList(Page.PageElement pageElement,
String text,
Object... args)
Check text selected in list (html select option).
|
protected void |
clearText(int timeOutInSeconds,
Page.PageElement pageElement,
CharSequence keysToSend,
Object... args)
Update a html input text with "".
|
protected void |
clearText(int timeOutInSeconds,
Page.PageElement pageElement,
Object... args)
Update a html input text with "".
|
protected void |
clearText(Page.PageElement pageElement,
CharSequence keysToSend,
Object... args)
Update a html input text with "".
|
protected void |
clearText(Page.PageElement pageElement,
Object... args)
Update a html input text with "".
|
protected void |
clickOn(int timeOutInSeconds,
Page.PageElement toClick,
Object... args)
Click on html element.
|
protected void |
clickOn(Page.PageElement toClick,
Object... args)
Click on html element.
|
protected void |
clickOnByJs(int timeOutInSeconds,
Page.PageElement toClick,
Object... args)
Click on html element by Javascript.
|
protected void |
clickOnByJs(int timeOutInSeconds,
Page page,
String xpath)
Click on html element by Javascript.
|
protected void |
clickOnByJs(Page.PageElement toClick,
Object... args)
Click on html element by Javascript.
|
protected void |
clickOnByJs(Page page,
String xpath)
Click on html element by Javascript.
|
protected void |
displayConcernedElementsAtTheBeginningOfMethod(String methodName,
List<String> concernedElements)
Display message (list of elements) at the beginning of method in logs.
|
protected void |
displayMessageAtTheBeginningOfMethod(String methodName,
String act,
List<String> concernedActivities)
Display message (list of authorized activities) at the beginning of method in logs.
|
protected void |
displayMessageAtTheBeginningOfMethod(String methodName,
String act,
String concernedActivity,
List<String> concernedActivities)
Displays message (concerned activity and list of authorized activities) at the beginning of method in logs.
|
protected void |
expectText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element equals expected value.
|
protected void |
expectText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element equals expected value.
|
protected void |
expectTextContains(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element contains expected value.
|
protected void |
expectTextContains(Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element contains expected value.
|
protected String |
getAlertMessage() |
org.openqa.selenium.WebDriver |
getDriver()
Quick getter to the global web driver
|
protected String |
getTextOrKey(String textOrKey) |
protected void |
passOver(Page.PageElement element,
Object... args)
Passes over a specific page element triggering 'mouseover' js event.
|
protected String |
readValueTextField(Page.PageElement pageElement,
Object... args)
Read Value Text Field.
|
protected void |
runAllStepsInLoop(List<GherkinConditionedLoopedStep> loopedSteps)
Runs a bunch of steps for a Gherkin loop.
|
protected void |
saveElementValue(Page.PageElement pageElement,
Object... args)
Save value in memory using default target key (Page key + field).
|
protected void |
saveElementValue(Page.PageElement pageElement,
String targetKey,
Object... args)
Save value in memory.
|
protected void |
selectCheckbox(Page.PageElement element,
boolean checked,
Object... args)
Checks a checkbox type element.
|
protected void |
selectCheckbox(Page.PageElement element,
String valueKeyOrKey,
Map<String,Boolean> values,
Object... args)
Checks a checkbox type element (value corresponding to key "valueKey").
|
protected void |
setText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Set a html input text with a text.
|
protected void |
setText(Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Set a html input text with a text.
|
protected void |
setText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Set a html input text with a text.
|
protected void |
switchFrame(Page.PageElement element,
Object... args)
Switches to the given frame.
|
protected void |
updateDateValidated(Page.PageElement pageElement,
String dateType,
String date,
Object... args)
Update a html input text value with a date.
|
protected void |
updateList(Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html select with a text value.
|
protected void |
updateRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues,
Object... args)
Update html radio button by value (value corresponding to key "index").
|
protected void |
updateRadioList(Page.PageElement pageElement,
String valueOrKey,
Object... args)
Update html radio button by text "input".
|
protected void |
updateText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Update a html input text with a text.
|
protected void |
updateText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html input text with a text.
|
protected void |
updateText(Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Update a html input text with a text.
|
protected void |
updateText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html input text with a text.
|
protected void |
uploadFile(Page.PageElement pageElement,
String fileOrKey,
Object... args)
Updates a html file input with the path of the file to upload.
|
protected static final String SECURE_MASK
@Inject protected UserNameService userNameService
@Inject protected CryptoService cryptoService
@Inject protected CucumberExpressionService cucumberExpressionService
public void checkStep(IPage page)
public org.openqa.selenium.WebDriver getDriver()
protected void clickOn(Page.PageElement toClick, Object... args) throws TechnicalException, FailureException
toClick
- html element.args
- list of arguments to format the found selector with.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 errorprotected void clickOn(int timeOutInSeconds, Page.PageElement toClick, Object... args) throws TechnicalException, FailureException
timeOutInSeconds
- The timeout in seconds when an expectation is called.toClick
- html element.args
- list of arguments to format the found selector with.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 errorprotected void clickOnByJs(Page.PageElement toClick, Object... args) throws TechnicalException, FailureException
toClick
- html element.args
- list of arguments to format the found selector with.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 errorprotected void clickOnByJs(int timeOutInSeconds, Page.PageElement toClick, Object... args) throws TechnicalException, FailureException
timeOutInSeconds
- The timeout in seconds when an expectation is called.toClick
- html element.args
- list of arguments to format the found selector with.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 errorprotected void clickOnByJs(Page page, String xpath) throws TechnicalException, FailureException
page
- page target application.xpath
- XPath of an element to evaluate.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 errorprotected void clickOnByJs(int timeOutInSeconds, Page page, String xpath) throws TechnicalException, FailureException
timeOutInSeconds
- The timeout in seconds when an expectation is called.page
- page target application.xpath
- XPath of an element to evaluate.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 errorprotected void updateText(Page.PageElement pageElement, String textOrKey, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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 errorprotected void updateText(int timeOutInSeconds, Page.PageElement pageElement, String textOrKey, Object... args) throws TechnicalException, FailureException
timeOutInSeconds
- The timeout in seconds when an expectation is called.pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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 errorprotected void setText(Page.PageElement pageElement, String textOrKey, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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 errorprotected void updateText(Page.PageElement pageElement, String textOrKey, CharSequence keysToSend, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).keysToSend
- character to send to the element after sendKeys
with textOrKey.args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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 errorprotected void updateText(int timeOutInSeconds, Page.PageElement pageElement, String textOrKey, CharSequence keysToSend, Object... args) throws TechnicalException, FailureException
timeOutInSeconds
- The timeout in seconds when an expectation is called.pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).keysToSend
- character to send to the element after sendKeys
with textOrKey.args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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 errorprotected void setText(Page.PageElement pageElement, String textOrKey, CharSequence keysToSend, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).keysToSend
- character to send to the element after sendKeys
with textOrKey.args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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 errorprotected void setText(int timeOutInSeconds, Page.PageElement pageElement, String textOrKey, CharSequence keysToSend, Object... args) throws TechnicalException, FailureException
timeOutInSeconds
- The timeout in seconds when an expectation is called.pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).keysToSend
- character to send to the element after sendKeys
with textOrKey.args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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 errorprotected void clearText(Page.PageElement pageElement, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_ERROR_CLEAR_ON_INPUT" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional errorprotected void clearText(int timeOutInSeconds, Page.PageElement pageElement, Object... args) throws TechnicalException, FailureException
timeOutInSeconds
- The timeout in seconds when an expectation is called.pageElement
- Is target element.args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_ERROR_CLEAR_ON_INPUT" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional errorprotected void clearText(Page.PageElement pageElement, CharSequence keysToSend, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.keysToSend
- character to send to the element after sendKeys
with textOrKey.args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_ERROR_CLEAR_ON_INPUT" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional errorprotected void clearText(int timeOutInSeconds, Page.PageElement pageElement, CharSequence keysToSend, Object... args) throws TechnicalException, FailureException
timeOutInSeconds
- The timeout in seconds when an expectation is called.pageElement
- Is target element.keysToSend
- character to send to the element after sendKeys
with textOrKey.args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_ERROR_CLEAR_ON_INPUT" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional errorprotected boolean checkInputText(Page.PageElement pageElement, String textOrKey, Object... args) throws FailureException, TechnicalException
pageElement
- Is target element.textOrKey
- Is the data to check (text or text in context (after a save)).args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional errorTechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message (with screenshot, no exception)protected boolean checkInputText(int timeOutInSeconds, Page.PageElement pageElement, String textOrKey, Object... args) throws FailureException, TechnicalException
timeOutInSeconds
- The timeout in seconds when an expectation is called.pageElement
- Is target element.textOrKey
- Is the data to check (text or text in context (after a save)).args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional errorTechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message (with screenshot, no exception)protected void expectText(Page.PageElement pageElement, String textOrKey, Object... args) throws FailureException, TechnicalException
pageElement
- Is target element.textOrKey
- Is the expected data (text or text in context (after a save)).args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message (with screenshot, no exception) or with
"FAIL_MESSAGE_WRONG_EXPECTED_VALUE" message
(with screenshot, with exception)protected void expectTextContains(Page.PageElement pageElement, String textOrKey, Object... args) throws FailureException, TechnicalException
pageElement
- Is target element.textOrKey
- Is the expected data (text or text in context (after a save)).args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message (with screenshot, no exception) or with
"FAIL_MESSAGE_WRONG_EXPECTED_VALUE" message
(with screenshot, with exception)protected void expectText(int timeOutInSeconds, Page.PageElement pageElement, String textOrKey, Object... args) throws FailureException, TechnicalException
timeOutInSeconds
- The timeout in seconds when an expectation is called.pageElement
- Is target element.textOrKey
- Is the expected data (text or text in context (after a save)).args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message (with screenshot, no exception) or with
"FAIL_MESSAGE_WRONG_EXPECTED_VALUE" message
(with screenshot, with exception)protected void expectTextContains(int timeOutInSeconds, Page.PageElement pageElement, String textOrKey, Object... args) throws FailureException, TechnicalException
timeOutInSeconds
- The timeout in seconds when an expectation is called.pageElement
- Is target element.textOrKey
- Is the expected data (text or text in context (after a save)).args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message (with screenshot, no exception) or with
"FAIL_MESSAGE_WRONG_EXPECTED_VALUE" message
(with screenshot, with exception)protected boolean checkMandatoryTextField(Page.PageElement pageElement, Object... args) throws FailureException
pageElement
- Is concerned element.args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error.protected String readValueTextField(Page.PageElement pageElement, Object... args) throws FailureException
pageElement
- Is concerned element.args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error.protected void checkText(Page.PageElement pageElement, String textOrKey, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_WRONG_EXPECTED_VALUE" message (with screenshot, with exception) or with
"FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message
(with screenshot, with exception)FailureException
- if the scenario encounters a functional error.protected void checkTextContains(Page.PageElement pageElement, String textOrKey, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_WRONG_EXPECTED_VALUE" message (with screenshot, with exception) or with
"FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message
(with screenshot, with exception)FailureException
- if the scenario encounters a functional error.protected void checkElementVisible(Page.PageElement pageElement, boolean displayed, Object... args) throws FailureException
pageElement
- Is target element.displayed
- Is target element supposed to be displayed.args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error. Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message
(with screenshot, with exception)protected void checkElementPresence(Page.PageElement pageElement, boolean present, Object... args) throws FailureException
pageElement
- Is target element.present
- Is target element supposed to be present.args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error. Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message
(with screenshot, with exception)protected void updateList(Page.PageElement pageElement, String textOrKey, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.textOrKey
- Is the new data (text or text in context (after a save)).args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_ERROR_ON_INPUT" message (with screenshot, no exception)
or
Exception with "FAIL_MESSAGE_VALUE_NOT_AVAILABLE_IN_THE_LIST" message (no screenshot, no exception)FailureException
- if the scenario encounters a functional errorprotected boolean checkTextSelectedInList(Page.PageElement pageElement, String text, Object... args) throws FailureException
pageElement
- Is target element.text
- is text searched.args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error.protected void updateDateValidated(Page.PageElement pageElement, String dateType, String date, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.dateType
- "any", "future", "today", "future_strict".date
- Is the new data (date).args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_WRONG_DATE_FORMAT" message (no screenshot, no exception) or with
"FAIL_MESSAGE_UNEXPECTED_DATE" message
(with screenshot, no exception)FailureException
- if the scenario encounters a functional error.protected void saveElementValue(Page.PageElement pageElement, Object... args) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND name of the field to save in memory. (sample: $demo.DemoPage-button).args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message (with screenshot, with exception) or with
"FAIL_MESSAGE_UNABLE_TO_RETRIEVE_VALUE" message
(with screenshot, with exception)FailureException
- if the scenario encounters a functional error.protected void saveElementValue(Page.PageElement pageElement, String targetKey, Object... args) throws TechnicalException, FailureException
pageElement
- The concerned page of field AND name of the field to save in memory to targetKey. (sample: demo.DemoPage-name_field in name).targetKey
- is the key to save value to.args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT" message (with screenshot, with exception) or with
"FAIL_MESSAGE_UNABLE_TO_RETRIEVE_VALUE" message
(with screenshot, with exception)FailureException
- if the scenario encounters a functional error.protected void updateRadioList(Page.PageElement pageElement, String valueKeyOrKey, Map<String,String> printedValues, Object... args) throws TechnicalException, FailureException
pageElement
- Is concerned element.valueKeyOrKey
- key printedValues.printedValues
- contain all possible value (order by key).args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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.protected boolean checkRadioList(Page.PageElement pageElement, String valueOrKey, Object... args) throws FailureException
pageElement
- The page element.valueOrKey
- (value or value in context (after a save)).
The value to check the selection from.args
- list of arguments to format the found selector with.FailureException
- if the scenario encounters a functional error.protected boolean checkRadioList(Page.PageElement pageElement, String valueKeyOrKey, Map<String,String> printedValues, Object... args) throws TechnicalException, FailureException
pageElement
- Is concerned element.valueKeyOrKey
- key printedValues.printedValues
- contain all possible value (order by key).args
- list of arguments to format the found selector with.TechnicalException
- is thrown 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.protected void updateRadioList(Page.PageElement pageElement, String valueOrKey, Object... args) throws TechnicalException, FailureException
pageElement
- Is concerned element.valueOrKey
- Is the value (value or value in context (after a save)) use for selection.args
- list of arguments to format the found selector with.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.protected void passOver(Page.PageElement element, Object... args) throws TechnicalException, FailureException
element
- Target page element.args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Failure with "FAIL_MESSAGE_UNABLE_TO_PASS_OVER_ELEMENT" message (with screenshot)FailureException
- if the scenario encounters a functional error.protected void selectCheckbox(Page.PageElement element, boolean checked, Object... args) throws TechnicalException, FailureException
element
- Target page element.checked
- Final checkbox value.args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Failure with "FAIL_MESSAGE_UNABLE_TO_CHECK_ELEMENT" message (with screenshot)FailureException
- if the scenario encounters a functional error.protected void selectCheckbox(Page.PageElement element, String valueKeyOrKey, Map<String,Boolean> values, Object... args) throws TechnicalException, FailureException
element
- Target page element.valueKeyOrKey
- is valueKey (valueKey or key in context (after a save)) to match in values mapvalues
- Values map.args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Failure with "FAIL_MESSAGE_UNABLE_TO_CHECK_ELEMENT" message (with screenshot)FailureException
- if the scenario encounters a functional error.protected void switchFrame(Page.PageElement element, Object... args) throws FailureException, TechnicalException
element
- The PageElement representing a frame.args
- list of arguments to format the found selector with.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 error.protected void uploadFile(Page.PageElement pageElement, String fileOrKey, Object... args) throws TechnicalException, FailureException
pageElement
- Is target element.fileOrKey
- Is the file path (text or text in context (after a save)).args
- list of arguments to format the found selector with.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UPLOADING_FILE" message (with screenshot, no exception)FailureException
- if the scenario encounters a functional error.protected void displayMessageAtTheBeginningOfMethod(String methodName, String act, String concernedActivity, List<String> concernedActivities)
methodName
- is name of java method.act
- is name of activity.concernedActivity
- is concerned activity.concernedActivities
- is a list of authorized activities.protected void displayMessageAtTheBeginningOfMethod(String methodName, String act, List<String> concernedActivities)
methodName
- is name of java method.act
- is name of activity.concernedActivities
- is a list of authorized activities.protected void displayConcernedElementsAtTheBeginningOfMethod(String methodName, List<String> concernedElements)
methodName
- is name of java method.concernedElements
- is a list of concerned elements (example: authorized activities).protected void checkAlert(Page page) throws FailureException
page
- A Page.FailureException
- if the scenario encounters a functional error.protected void runAllStepsInLoop(List<GherkinConditionedLoopedStep> loopedSteps) throws TechnicalException
loopedSteps
- GherkinConditionedLoopedStep steps to run.TechnicalException
- is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.protected String getAlertMessage()
protected String getTextOrKey(String textOrKey) throws TechnicalException
textOrKey
- Is the new data (text or text in context (after a save)).TechnicalException
- is thrown if you have a technical error (decrypt value) in NoraUi.Copyright © 2023 NoraUi. All rights reserved.