Package allurium.primitives
Class Row
java.lang.Object
allurium.primitives.UIElement
allurium.primitives.Row
- All Implemented Interfaces:
AlluriumElement,ListComponent,WebElementMeta
Represents a `Row` element in the UI, extending
UIElement.
This class encapsulates the behavior and attributes of a row element, commonly used in tables, grids, or list-based UI components.
Features:
- Encapsulates behavior and attributes of a row element.
- Supports multiple initialization methods through constructors and static factory methods.
- Extends
UIElementto provide generic interaction capabilities.
Purpose:
- Standardizes interactions with row elements in UI components.
- Simplifies the creation and management of rows in tests.
Constructors:
Row()- Default constructor.Row(String)- Creates a `Row` using a Selenide locator string.Row(String, String)- Creates a `Row` using a Selenide locator string and a name.Row(By)- Creates a `Row` using a SeleniumBylocator.Row(By, String)- Creates a `Row` using a SeleniumBylocator and a name.Row(SelenideElement)- Creates a `Row` using aSelenideElement.Row(SelenideElement, String)- Creates a `Row` using aSelenideElementand a name.
Static Factory Methods:
$row(By)- Creates a `Row` using a SeleniumBylocator.$row(By, String)- Creates a `Row` using a SeleniumBylocator and a name.$row(SelenideElement)- Creates a `Row` using aSelenideElement.$row(SelenideElement, String)- Creates a `Row` using aSelenideElementand a name.$row(String)- Creates a `Row` using a Selenide locator string.$row(String, String)- Creates a `Row` using a Selenide locator string and a name._$row(String)- Creates a `Row` using an XPath expression.
Usage Example:
// Creating a row using a Selenide locator
Row row = $row("div.row-class");
// Creating a row using a Selenium locator and assigning a custom name
Row namedRow = $row(By.cssSelector(".row-class"), "Custom Row");
-
Field Summary
Fields inherited from class allurium.primitives.UIElement
assignNameMethod, description, id, parent, root, stepsConsoleLoggingEnabled, stepsReportLoggingEnabled, uiElementName, uiElementType -
Constructor Summary
ConstructorsConstructorDescriptionRow()Default constructor.Row(com.codeborne.selenide.SelenideElement selenideElement) Constructor that initializes a `Row` using aSelenideElement.Constructor that initializes a `Row` using aSelenideElementand a name.Constructor that initializes a `Row` using a Selenide locator string.Constructor that initializes a `Row` using a Selenide locator string and a name.Row(org.openqa.selenium.By locator) Constructor that initializes a `Row` using a SeleniumBylocator.Constructor that initializes a `Row` using a SeleniumBylocator and a name. -
Method Summary
Methods inherited from class allurium.primitives.UIElement
_$uiElement, $uiElement, $uiElement, $uiElement, $uiElement, $uiElement, $uiElement, applyName, applyName, as, assertEmpty, assertEquals, assertExists, assertExists, assertHasCssClass, assertHasCssClass, assertHasNotCssClass, assertHasNotCssClass, assertHasNotCssClass, assertHasText, assertIsNotEmpty, assertNotExist, assertNotExist, assertNotVisible, assertNotVisible, assertNotVisible, assertText, assertVisible, assertVisible, assertVisible, assertVisible, assertVisibleInViewport, click, click, click, click, click, clickAndHold, clickAndHold, clickAndHold, contextClick, contextClick, contextClick, doubleClick, doubleClick, doubleClick, get, getAllureCompiledStep, getAttribute, getHeight, getId, getStepText, getUiElementName, getWidth, hover, hover, hover, isDisplayed, logStep, logStepToReport, logStepToReport, scrollTo, scrollTo, scrollTo, setRoot, setRoot, text, verifyEmpty, verifyIsNotEmpty, wrappedNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface allurium.interfaces.AlluriumElement
getRootMethods inherited from interface allurium.interfaces.WebElementMeta
getDescription, getMetaKeys, getParent, setAssignNameMethod, setDescription, setParent, setUiElementName
-
Constructor Details
-
Row
public Row()Default constructor. Initializes the element type as "row". -
Row
Constructor that initializes a `Row` using a Selenide locator string.- Parameters:
selenideLocator- the Selenide locator as a string
-
Row
Constructor that initializes a `Row` using a Selenide locator string and a name.- Parameters:
selenideLocator- the Selenide locator as a stringname- the name of the row
-
Row
public Row(org.openqa.selenium.By locator) Constructor that initializes a `Row` using a SeleniumBylocator.- Parameters:
locator- the Selenium locator for the row
-
Row
Constructor that initializes a `Row` using a SeleniumBylocator and a name.- Parameters:
locator- the Selenium locator for the rowname- the name of the row
-
Row
public Row(com.codeborne.selenide.SelenideElement selenideElement) Constructor that initializes a `Row` using aSelenideElement.- Parameters:
selenideElement- the Selenide element representing the row
-
Row
Constructor that initializes a `Row` using aSelenideElementand a name.- Parameters:
selenideElement- the Selenide element representing the rowname- the name of the row
-
-
Method Details
-
$row
-
$row
-
$row
-
$row
-
$row
-
$row
-
_$row
-