Package com.shaft.validation.internal
Class ValidationsBuilder
java.lang.Object
com.shaft.validation.internal.ValidationsBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbrowser
(org.openqa.selenium.WebDriver driver) Build a WebDriver browser validation to check against the target browserelement
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By locator) Build a file validation to check against the target fileForce fails the current validationBuild a number validation to check against the target numberBuild a native validation to check against the target objectBuild an API response validation to check against the target API response
-
Constructor Details
-
ValidationsBuilder
-
-
Method Details
-
object
Build a native validation to check against the target object- Parameters:
actualValue
- the actual object that will be compared against- Returns:
- a NativeValidationsBuilder object to continue building your validation
-
number
Build a number validation to check against the target number- Parameters:
actualValue
- the actual number that will be compared against- Returns:
- a NumberValidationsBuilder object to continue building your validation
-
element
public WebDriverElementValidationsBuilder element(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By locator) -
browser
Build a WebDriver browser validation to check against the target browser- Returns:
- a WebDriverBrowserValidationsBuilder object to continue building your validation
-
response
Build an API response validation to check against the target API response- Parameters:
response
- the target API response object- Returns:
- a RestValidationsBuilder object to continue building your validation
-
file
Build a file validation to check against the target file- Parameters:
folderRelativePath
- relative path to the targetDirectoryfileName
- target fileName- Returns:
- a FileValidationsBuilder object to continue building your validation
-
forceFail
Force fails the current validation- Returns:
- a ValidationsExecutor object to set your custom validation message (if needed) and then perform() your validation
-
forceFail
-