Package | Description |
---|---|
com.github.noraui.application.steps | |
com.github.noraui.browser.steps |
Modifier and Type | Method and Description |
---|---|
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. |
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. |
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.
|
void |
CommonSteps.checkInputText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Checks if html 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.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 |
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).
|
void |
FileSteps.cleanDownloadDirectory(List<GherkinStepCondition> conditions)
Empties the default downloaded files folder.
|
void |
CommonSteps.clearText(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Clears a html element with conditions.
|
void |
CommonSteps.clickOn(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Click on html element if all 'expected' parameters equals 'actual' parameters in conditions.
|
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.
|
void |
CommonSteps.clickOnByJs(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Click on html element using Javascript if all 'expected' parameters equals 'actual' parameters in conditions.
|
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.
|
void |
ExpectSteps.expectText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Checks if an html 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 |
CommonSteps.passOver(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Simulates the mouse over a html element
|
void |
FileSteps.removefileInDownloadDirectory(String file,
List<GherkinStepCondition> conditions)
Remove a file in the default downloaded files folder
|
void |
CommonSteps.saveElementValue(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Save field in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
ScreenSteps.saveScreenshot(String screenName,
List<GherkinStepCondition> conditions)
Save a screenshot and add to DOWNLOAD_FILES_FOLDER folder.
|
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.
|
void |
ScreenSteps.scrollIntoView(Page.PageElement pageElement,
List<GherkinStepCondition> conditions) |
void |
CommonSteps.selectCheckbox(Page.PageElement pageElement,
String value,
List<GherkinStepCondition> conditions)
Updates the value of a html checkbox element with conditions.
|
void |
CommonSteps.setText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions) |
void |
CommonSteps.setText(String pageElement,
String textOrKey,
List<GherkinStepCondition> conditions) |
void |
ScreenSteps.startVideoCapture(String screenName,
List<GherkinStepCondition> conditions)
I start video capture and add to DOWNLOAD_FILES_FOLDER folder.
|
void |
ScreenSteps.stopVideoCapture(List<GherkinStepCondition> conditions)
I start video capture and add to DOWNLOAD_FILES_FOLDER folder.
|
void |
CommonSteps.switchFrame(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Switches to the given frame.
|
void |
ScreenSteps.takeScreenshot(List<GherkinStepCondition> conditions)
Take a screenshot and add to result.
|
void |
CommonSteps.updateDate(Page.PageElement pageElement,
String dateType,
String dateOrKey,
List<GherkinStepCondition> conditions)
Update a html input text 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).
|
void |
CommonSteps.updateRadioList(Page.PageElement pageElement,
String valueOrKey,
List<GherkinStepCondition> conditions)
Updates the value of a html radio element with conditions.
|
void |
CommonSteps.updateText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a given 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.
|
void |
MailSteps.validActivationEmail(String mailHost,
String mailUser,
String mailPassword,
String senderMail,
String subjectMail,
String firstCssQuery,
List<GherkinStepCondition> conditions)
Valid activation email.
|
void |
WaitSteps.wait(int time,
List<GherkinStepCondition> conditions)
Waits a time in second.
|
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,
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.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,
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).
|
Copyright © 2023 NoraUi. All rights reserved.