Package | Description |
---|---|
com.github.noraui.application.page | |
com.github.noraui.application.steps | |
com.github.noraui.utils |
Modifier and Type | Method and Description |
---|---|
Page.PageElement |
IPage.getPageElementByKey(String key) |
Page.PageElement |
Page.getPageElementByKey(String key) |
Modifier and Type | Method and Description |
---|---|
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. |
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.
|
protected boolean |
Step.checkMandatoryTextField(Page.PageElement pageElement,
Object... args)
Checks mandatory text field.
|
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).
|
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.
|
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.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 |
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 |
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 |
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) |
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.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 |
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 |
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.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.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 |
---|---|
static org.openqa.selenium.WebElement |
Utilities.findElement(Page.PageElement element,
Object... args)
Find the first
WebElement using the given method. |
static org.openqa.selenium.By |
Utilities.getLocator(Page.PageElement element,
Object... args)
This method read a application descriptor file and return a
By object (xpath, id, link ...). |
static String |
Utilities.getLocatorValue(Page.PageElement element,
Object... args) |
Copyright © 2023 NoraUi. All rights reserved.