Package com.shaft.validation
Class WebDriverBrowserValidationsBuilder
java.lang.Object
com.shaft.validation.WebDriverBrowserValidationsBuilder
-
Constructor Summary
ConstructorDescriptionWebDriverBrowserValidationsBuilder
(com.shaft.validation.ValidationEnums.ValidationCategory validationCategory, org.openqa.selenium.WebDriver driver, StringBuilder reportMessageBuilder) -
Method Summary
Modifier and TypeMethodDescriptionattribute
(ValidationEnums.BrowserAttribute browserAttribute) Deprecated.Use this to check against a certain browser attributetitle()
Use this to check against the current page titleurl()
Use this to check against the current page URL
-
Constructor Details
-
WebDriverBrowserValidationsBuilder
public WebDriverBrowserValidationsBuilder(com.shaft.validation.ValidationEnums.ValidationCategory validationCategory, org.openqa.selenium.WebDriver driver, StringBuilder reportMessageBuilder)
-
-
Method Details
-
attribute
Use this to check against a certain browser attribute- Parameters:
browserAttribute
- the target browser attribute that will be checked against- Returns:
- a NativeValidationsBuilder object to continue building your validation
-
attribute
@Deprecated public NativeValidationsBuilder attribute(ValidationEnums.BrowserAttribute browserAttribute) Deprecated.Use this to check against a certain browser attribute- Parameters:
browserAttribute
- the target browser attribute that will be checked against- Returns:
- a NativeValidationsBuilder object to continue building your validation
-
url
Use this to check against the current page URL- Returns:
- a NativeValidationsBuilder object to continue building your validation
-
title
Use this to check against the current page title- Returns:
- a NativeValidationsBuilder object to continue building your validation
-