Package | Description |
---|---|
com.github.noraui.application.steps | |
com.github.noraui.browser.steps | |
com.github.noraui.exception |
Modifier and Type | Method and Description |
---|---|
void |
TimeSteps.changeDate(String targetKey,
Map<String,String> params) |
void |
MathsSteps.changeValue(String targetKey,
Map<String,String> params) |
protected void |
Step.checkAlert(Page page)
Checks that a given page displays a html alert.
|
void |
CommonSteps.checkAlert(String messageOrKey)
Checks that a given page displays a html alert with a message.
|
void |
CommonSteps.checkAlert(String page,
List<GherkinStepCondition> conditions)
Checks that a given page displays a html alert.
|
void |
CommonSteps.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 |
CommonSteps.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. |
protected void |
Step.checkElementPresence(Page.PageElement pageElement,
boolean present,
Object... args)
Checks if an html element (PageElement) is displayed.
|
void |
CommonSteps.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. |
protected void |
Step.checkElementVisible(Page.PageElement pageElement,
boolean displayed,
Object... args)
Checks if an html element (PageElement) is displayed.
|
void |
CommonSteps.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 |
FileSteps.checkFile(String file,
String encoding,
String regexp,
List<GherkinStepCondition> conditions)
Checks that a file in the default downloaded files folder matches the given regexp.
|
protected boolean |
Step.checkInputText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if input text contains expected value.
|
void |
CommonSteps.checkInputText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Checks if html input text contains expected value.
|
protected boolean |
Step.checkInputText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if input text contains expected value.
|
void |
CommonSteps.checkMandatoryField(Page.PageElement pageElement,
String type,
List<GherkinStepCondition> conditions)
Checks that mandatory field is no empty with conditions.
|
void |
CommonSteps.checkMandatoryFields(Map<String,String> mandatoryFields)
Check all mandatory fields.
|
protected boolean |
Step.checkMandatoryTextField(Page.PageElement pageElement,
Object... args)
Checks mandatory text field.
|
void |
CommonSteps.checkNotEmpty(String data,
String textOrKey,
List<GherkinStepCondition> conditions)
Generic method to check that the value given in parameters is not empty.
|
void |
CommonSteps.checkRadioList(Page.PageElement pageElement,
String valueOrKey,
List<GherkinStepCondition> conditions)
Checks if radio list expected value with conditions.
|
void |
CommonSteps.checkRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues)
Checks if radio list expected value using a map of keys/printed values.
|
protected boolean |
Step.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 |
Step.checkRadioList(Page.PageElement pageElement,
String valueOrKey,
Object... args)
Checks that given value is matching the selected radio list button.
|
protected void |
Step.checkText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if HTML text equals expected value.
|
protected void |
Step.checkTextContains(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if HTML text contains expected value.
|
protected boolean |
Step.checkTextSelectedInList(Page.PageElement pageElement,
String text,
Object... args)
Check text selected in list (html select option).
|
void |
ContextSteps.checkThatValueInContextContains(String srcValueOrKey,
String compareValueOrKey,
List<GherkinStepCondition> conditions)
Check that value (or value in context) contains value (or value in context).
|
void |
ContextSteps.checkThatValueInContextEqualsIgnoreCaseTo(String srcValueOrKey,
String compareValueOrKey,
List<GherkinStepCondition> conditions)
Check that value (or value in context) equals ignore case to value (or value in context).
|
void |
ContextSteps.checkThatValueInContextEqualsTo(String srcValueOrKey,
String compareValueOrKey,
List<GherkinStepCondition> conditions)
Check that value (or value in context) equals to value (or value in context).
|
protected void |
Step.clearText(int timeOutInSeconds,
Page.PageElement pageElement,
CharSequence keysToSend,
Object... args)
Update a html input text with "".
|
protected void |
Step.clearText(int timeOutInSeconds,
Page.PageElement pageElement,
Object... args)
Update a html input text with "".
|
protected void |
Step.clearText(Page.PageElement pageElement,
CharSequence keysToSend,
Object... args)
Update a html input text with "".
|
void |
CommonSteps.clearText(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Clears a html element with conditions.
|
protected void |
Step.clearText(Page.PageElement pageElement,
Object... args)
Update a html input text with "".
|
protected void |
Step.clickOn(int timeOutInSeconds,
Page.PageElement toClick,
Object... args)
Click on html element.
|
void |
CommonSteps.clickOn(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Click on html element if all 'expected' parameters equals 'actual' parameters in conditions.
|
protected void |
Step.clickOn(Page.PageElement toClick,
Object... args)
Click on html element.
|
void |
CommonSteps.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.
|
protected void |
Step.clickOnByJs(int timeOutInSeconds,
Page.PageElement toClick,
Object... args)
Click on html element by Javascript.
|
protected void |
Step.clickOnByJs(int timeOutInSeconds,
Page page,
String xpath)
Click on html element by Javascript.
|
void |
CommonSteps.clickOnByJs(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Click on html element using Javascript if all 'expected' parameters equals 'actual' parameters in conditions.
|
protected void |
Step.clickOnByJs(Page.PageElement toClick,
Object... args)
Click on html element by Javascript.
|
protected void |
Step.clickOnByJs(Page page,
String xpath)
Click on html element by Javascript.
|
void |
CommonSteps.clickOnXpathByJs(String xpath,
Page page,
List<GherkinStepCondition> conditions)
Click on html element using Javascript if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
ScreenSteps.compareScreenshot(String screenName,
Inequality inequality,
double percentReference,
List<GherkinStepCondition> conditions)
Take a screenshot and compare to screen all ready to disc.
|
void |
ContextSteps.copyContext(String srcValueOrKey,
String targetKey,
List<GherkinStepCondition> conditions)
Copy source value or value in context.
|
protected void |
Step.expectText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element equals expected value.
|
void |
ExpectSteps.expectText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Checks if an html element contains expected value.
|
protected void |
Step.expectText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element equals expected value.
|
protected void |
Step.expectTextContains(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element contains expected value.
|
protected void |
Step.expectTextContains(Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element contains expected value.
|
void |
ContextSteps.generateAndSaveTextWithRamdomValueMatchRegexp(String randRegex,
String targetKey,
List<GherkinStepCondition> conditions)
Save in context a text generated with ramdom match a regExp.
|
void |
TimeSteps.initDateInContext(String targetKey,
Map<String,String> params) |
void |
TimeSteps.initializeBusinessDayWithAdd(int offsetDay,
String targetKey,
Map<String,String> params) |
void |
TimeSteps.initializeBusinessDayWithMinus(int offsetDay,
String targetKey,
Map<String,String> params) |
void |
CommonSteps.passOver(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Simulates the mouse over a html element
|
protected void |
Step.passOver(Page.PageElement element,
Object... args)
Passes over a specific page element triggering 'mouseover' js event.
|
protected String |
Step.readValueTextField(Page.PageElement pageElement,
Object... args)
Read Value Text Field.
|
void |
CommonSteps.saveElementValue(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Save field in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
protected void |
Step.saveElementValue(Page.PageElement pageElement,
Object... args)
Save value in memory using default target key (Page key + field).
|
protected void |
Step.saveElementValue(Page.PageElement pageElement,
String targetKey,
Object... args)
Save value in memory.
|
void |
CommonSteps.saveValue(Page.PageElement pageElement,
String targetKey,
List<GherkinStepCondition> conditions)
Save field in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
RESTSteps.saveValue(String method,
String pageKey,
String uri,
String targetKey,
List<GherkinStepCondition> conditions)
Save result of REST API in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
CommonSteps.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 |
RESTSteps.saveValueInDataOutputProvider(String method,
String pageKey,
String uri,
String targetColumn,
List<GherkinStepCondition> conditions)
Save result of REST API in dataOutputProvider if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
ScreenSteps.saveWebElementInScreenshot(Page.PageElement pageElement,
String screenName,
List<GherkinStepCondition> conditions)
Save a screenshot of one element only and add to DOWNLOAD_FILES_FOLDER folder.
|
protected void |
Step.selectCheckbox(Page.PageElement element,
boolean checked,
Object... args)
Checks a checkbox type element.
|
void |
CommonSteps.selectCheckbox(Page.PageElement pageElement,
String value,
List<GherkinStepCondition> conditions)
Updates the value of a html checkbox element with conditions.
|
void |
CommonSteps.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.
|
protected void |
Step.selectCheckbox(Page.PageElement element,
String valueKeyOrKey,
Map<String,Boolean> values,
Object... args)
Checks a checkbox type element (value corresponding to key "valueKey").
|
protected void |
Step.setText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Set a html input text with a text.
|
protected void |
Step.setText(Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Set a html input text with a text.
|
void |
CommonSteps.setText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions) |
protected void |
Step.setText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Set a html input text with a text.
|
void |
CommonSteps.setText(String pageElement,
String textOrKey,
List<GherkinStepCondition> conditions) |
void |
CommonSteps.switchFrame(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Switches to the given frame.
|
protected void |
Step.switchFrame(Page.PageElement element,
Object... args)
Switches to the given frame.
|
void |
CommonSteps.updateDate(Page.PageElement pageElement,
String dateType,
String dateOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a date.
|
protected void |
Step.updateDateValidated(Page.PageElement pageElement,
String dateType,
String date,
Object... args)
Update a html input text value with a date.
|
void |
CommonSteps.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).
|
protected void |
Step.updateList(Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html select with a text value.
|
void |
CommonSteps.updateRadioList(Page.PageElement pageElement,
String valueOrKey,
List<GherkinStepCondition> conditions)
Updates the value of a html radio element with conditions.
|
void |
CommonSteps.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.
|
protected void |
Step.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 |
Step.updateRadioList(Page.PageElement pageElement,
String valueOrKey,
Object... args)
Update html radio button by text "input".
|
protected void |
Step.updateText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Update a html input text with a text.
|
protected void |
Step.updateText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html input text with a text.
|
protected void |
Step.updateText(Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Update a html input text with a text.
|
void |
CommonSteps.updateText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a given text.
|
protected void |
Step.updateText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html input text with a text.
|
void |
CommonSteps.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 |
CommonSteps.updateTextWithRamdomValueMatchRegexp(Page.PageElement pageElement,
String randRegex,
List<GherkinStepCondition> conditions)
Update a html input text with a random text.
|
void |
FileSteps.uploadFile(Page.PageElement pageElement,
String filename,
List<GherkinStepCondition> conditions)
Waits the full download of a file.
|
protected void |
Step.uploadFile(Page.PageElement pageElement,
String fileOrKey,
Object... args)
Updates a html file input with the path of the file to upload.
|
void |
MailSteps.validActivationEmail(String mailHost,
String mailUser,
String mailPassword,
String senderMail,
String subjectMail,
String firstCssQuery,
List<GherkinStepCondition> conditions)
Valid activation email.
|
void |
WaitSteps.waitAttributeContains(String attribute,
Page.PageElement pageElement,
Boolean not,
String value,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitAttributeToBe(String attribute,
Page.PageElement pageElement,
Boolean not,
String value,
List<GherkinStepCondition> conditions) |
void |
FileSteps.waitDownloadFile(String file,
int timeout,
List<GherkinStepCondition> conditions)
Waits the full download of a file with a maximum timeout in seconds.
|
void |
WaitSteps.waitElementToBeClickable(Page.PageElement pageElement,
Boolean not,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitElementToBeNotSelected(Page.PageElement pageElement,
Boolean not,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitInvisibilityOf(Page.PageElement pageElement,
Boolean not,
int timeOutInSeconds,
List<GherkinStepCondition> conditions)
Waits invisibility of element with timeout of x seconds.
|
void |
WaitSteps.waitInvisibilityOf(Page.PageElement pageElement,
Boolean not,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitInvisibilityOfElementWithText(Page.PageElement pageElement,
String text,
Boolean not,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitInvisibilityOfElementWithTextWithTimeout(Page.PageElement pageElement,
String text,
Boolean not,
int timeOutInSeconds,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitNumberOfElementsToBe(Page.PageElement pageElement,
Boolean not,
int number,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitNumberOfElementsToBeLessThan(Page.PageElement pageElement,
Boolean not,
Integer number,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitNumberOfElementsToBeMoreThan(Page.PageElement pageElement,
Boolean not,
Integer number,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitNumberOfWindowsToBe(Boolean not,
Integer expectedNumberOfWindows,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitPresenceOfElementLocated(Page.PageElement pageElement,
Boolean not,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitPresenceOfNestedElementLocatedBy(Page.PageElement pageElement,
Page.PageElement childPageElement,
Boolean not,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitStalenessOf(Page.PageElement pageElement,
Boolean not,
int time,
List<GherkinStepCondition> conditions)
Waits staleness of element with timeout of x seconds.
|
void |
WaitSteps.waitTextMatches(Page.PageElement pageElement,
Boolean not,
String regexp,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitTextToBe(Page.PageElement pageElement,
Boolean not,
String value,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitTextToBePresentInElementLocated(Page.PageElement pageElement,
Boolean not,
String text,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitTextToBePresentInElementValue(Page.PageElement pageElement,
Boolean not,
String text,
List<GherkinStepCondition> conditions)
Waits text to be present in element value.
|
void |
WaitSteps.waitTitleContains(Boolean not,
String title,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitTitleIs(Boolean not,
String title,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitUrlContains(Boolean not,
String fraction,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitUrlMatches(Boolean not,
String regex,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitUrlToBe(Boolean not,
String url,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitVisibilityOf(Page.PageElement pageElement,
Boolean not,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitVisibilityOfNestedElementsLocatedBy(Page.PageElement pageElement,
Boolean not,
Page.PageElement childPageElement,
List<GherkinStepCondition> conditions) |
Modifier and Type | Method and Description |
---|---|
void |
BrowserSteps.closeAllWindowsAndSwitchTo(String key)
Closes all windows except the given one.
|
void |
BrowserSteps.closeAllWindowsAndSwitchTo(String key,
List<GherkinStepCondition> conditions)
Closes all browser windows and switches to target window with conditions.
|
void |
BrowserSteps.closeWindowAndSwitchTo(String key,
List<GherkinStepCondition> conditions)
Closes window and switches to target window with conditions.
|
void |
BrowserSteps.closeWindowAndSwitchTo(String key,
String backTo)
Closes a specific window and go to the given url.
|
void |
BrowserSteps.goToUrl(String pageKey)
Go to Url.
|
void |
BrowserSteps.openNewWindow(List<GherkinStepCondition> conditions)
Open new window with conditions.
|
void |
BrowserSteps.openUrlIfDifferent(String pageKey,
List<GherkinStepCondition> conditions)
Open Url if different with conditions.
|
void |
BrowserSteps.restartWebDriverAndSwitchTo(String backTo)
Restart WebDriver with a
Context.clear() and go to the given url. |
void |
BrowserSteps.restartWebDriverAndSwitchTo(String backTo,
List<GherkinStepCondition> conditions)
Restart WebDriver with a
Context.clear() and switches to target window with conditions. |
void |
BrowserSteps.switchWindow(String windowKey,
List<GherkinStepCondition> conditions)
Switch window when the scenario contain more one windows (one more application for example).
|
Constructor and Description |
---|
Failure(O error,
String message,
boolean takeScreenshot,
Callbacks.Callback callback) |
Failure(O error,
String message,
boolean takeScreenshot,
int nid,
Callbacks.Callback callback) |
Copyright © 2023 NoraUi. All rights reserved.