cryptoService, cucumberExpressionService, SECURE_MASK, userNameService
Constructor and Description |
---|
ScreenSteps() |
Modifier and Type | Method and Description |
---|---|
void |
compareScreenshot(String screenName,
Inequality inequality,
double percentReference,
List<GherkinStepCondition> conditions)
Take a screenshot and compare to screen all ready to disc.
|
void |
saveScreenshot(String screenName,
List<GherkinStepCondition> conditions)
Save a screenshot and add to DOWNLOAD_FILES_FOLDER folder.
|
void |
saveWebElementInScreenshot(Page.PageElement pageElement,
String screenName,
List<GherkinStepCondition> conditions)
Save a screenshot of one element only and add to DOWNLOAD_FILES_FOLDER folder.
|
void |
scrollIntoView(Page.PageElement pageElement,
List<GherkinStepCondition> conditions) |
void |
startVideoCapture(String screenName,
List<GherkinStepCondition> conditions)
I start video capture and add to DOWNLOAD_FILES_FOLDER folder.
|
void |
stopVideoCapture(List<GherkinStepCondition> conditions)
I start video capture and add to DOWNLOAD_FILES_FOLDER folder.
|
void |
takeScreenshot(List<GherkinStepCondition> conditions)
Take a screenshot and add to result.
|
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
@Et(value="Je prends une capture d\'\u00e9cran(\\?)") @And(value="I take a screenshot(\\?)") public void takeScreenshot(List<GherkinStepCondition> conditions)
conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).@Et(value="Je sauvegarde une capture d\'\u00e9cran dans {string}(\\?)") @And(value="I save a screenshot in {string}(\\?)") public void saveScreenshot(String screenName, List<GherkinStepCondition> conditions) throws IOException
screenName
- name of screenshot file.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).IOException
- if file or directory is wrong.@Et(value="Je sauvegarde une capture d\'\u00e9cran de {page-element} dans {string}(\\?)") @And(value="I save a screenshot of {page-element} in {string}(\\?)") public void saveWebElementInScreenshot(Page.PageElement pageElement, String screenName, List<GherkinStepCondition> conditions) throws IOException, FailureException, TechnicalException
pageElement
- The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)screenName
- name of screenshot file.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
). * list of 'expected' values condition and 'actual' values
(GherkinStepCondition
).IOException
- if file or directory is wrong.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)@Et(value="Je compare une capture d\'\u00e9cran avec {string} et affirmer un \u00e9chec si la diff\u00e9rence est {inequality} {float}(\\?)") @And(value="I compare a screenshot with {string} and assert a failure if difference is {inequality} {float}(\\?)") public void compareScreenshot(String screenName, Inequality inequality, double percentReference, List<GherkinStepCondition> conditions) throws IOException, FailureException
screenName
- name of screenshot file.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).IOException
- if file or directory is wrong.FailureException
@Et(value="Je commence la capture vid\u00e9o dans {string}(\\?)") @And(value="I start video capture in {string}(\\?)") public void startVideoCapture(String screenName, List<GherkinStepCondition> conditions) throws IOException, AWTException
screenName
- name of video file.conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).IOException
- if file or directory is wrong.AWTException
- if configuration video file is wrong.@Et(value="Je stop la capture vid\u00e9o(\\?)") @And(value="I stop video capture(\\?)") public void stopVideoCapture(List<GherkinStepCondition> conditions) throws IOException
conditions
- list of 'expected' values condition and 'actual' values (GherkinStepCondition
).IOException
- if file or directory is wrong.@Et(value="Je d\u00e9file vers {string}(\\?)") @And(value="I scroll to {string}(\\?)") public void scrollIntoView(Page.PageElement pageElement, List<GherkinStepCondition> conditions)
Copyright © 2023 NoraUi. All rights reserved.