Package allurium.primitives
Class Cell
java.lang.Object
allurium.primitives.UIElement
allurium.primitives.Cell
- All Implemented Interfaces:
AlluriumElement,ListComponent,WebElementMeta
Represents a Cell element in the UI, extending
UIElement.
This class provides specific functionality for managing cell elements in tables or grids, such as setting the element type to "cell" and offering utility methods for creating cell instances.
Purpose:
- Encapsulates cell-specific behavior.
- Provides utility methods for convenient creation and management of cell elements.
-
Field Summary
Fields inherited from class allurium.primitives.UIElement
assignNameMethod, description, id, parent, root, stepsConsoleLoggingEnabled, stepsReportLoggingEnabled, uiElementName, uiElementType -
Constructor Summary
ConstructorsModifierConstructorDescriptionCell()Default constructor.Cell(com.codeborne.selenide.SelenideElement selenideElement) Constructor that initializes a cell using a Selenide element.protectedConstructor that initializes a cell using a Selenide element and a name.protectedConstructor that initializes a cell using a Selenide locator string.protectedConstructor that initializes a cell using a Selenide locator string and a name.protectedCell(org.openqa.selenium.By locator) Constructor that initializes a cell using a SeleniumBylocator.protectedConstructor that initializes a cell using a SeleniumBylocator and a name. -
Method Summary
Modifier and TypeMethodDescriptionstatic CellCreates a cell using an XPath string.static Cell$cell(com.codeborne.selenide.SelenideElement selenideElement) Creates a cell using a Selenide element.static CellCreates a cell using a Selenide element and a name.static CellCreates a cell using a Selenide locator string.static CellCreates a cell using a Selenide locator string and a name.static Cell$cell(org.openqa.selenium.By locator) Creates a cell using a SeleniumBylocator.static CellCreates a cell using a SeleniumBylocator and a name.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
-
Cell
public Cell()Default constructor. Initializes the cell element type. -
Cell
Constructor that initializes a cell using a Selenide locator string.- Parameters:
selenideLocator- the Selenide locator as a string
-
Cell
Constructor that initializes a cell using a Selenide locator string and a name.- Parameters:
selenideLocator- the Selenide locator as a stringname- the name of the cell
-
Cell
protected Cell(org.openqa.selenium.By locator) Constructor that initializes a cell using a SeleniumBylocator.- Parameters:
locator- the Selenium locator for the cell
-
Cell
Constructor that initializes a cell using a SeleniumBylocator and a name.- Parameters:
locator- the Selenium locator for the cellname- the name of the cell
-
Cell
public Cell(com.codeborne.selenide.SelenideElement selenideElement) Constructor that initializes a cell using a Selenide element.- Parameters:
selenideElement- the Selenide element representing the cell
-
Cell
Constructor that initializes a cell using a Selenide element and a name.- Parameters:
selenideElement- the Selenide element representing the cellname- the name of the cell
-
-
Method Details
-
$cell
Creates a cell using a SeleniumBylocator.- Parameters:
locator- the Selenium locator for the cell- Returns:
- a new
Cellinstance
-
$cell
Creates a cell using a SeleniumBylocator and a name.- Parameters:
locator- the Selenium locator for the cellname- the name of the cell- Returns:
- a new
Cellinstance
-
$cell
Creates a cell using a Selenide element.- Parameters:
selenideElement- the Selenide element representing the cell- Returns:
- a new
Cellinstance
-
$cell
Creates a cell using a Selenide element and a name.- Parameters:
selenideElement- the Selenide element representing the cellname- the name of the cell- Returns:
- a new
Cellinstance
-
$cell
Creates a cell using a Selenide locator string.- Parameters:
selenideLocator- the Selenide locator as a string- Returns:
- a new
Cellinstance
-
$cell
Creates a cell using a Selenide locator string and a name.- Parameters:
selenideLocator- the Selenide locator as a stringname- the name of the cell- Returns:
- a new
Cellinstance
-
_$cell
Creates a cell using an XPath string.- Parameters:
xpath- the XPath string for the cell- Returns:
- a new
Cellinstance
-