Package allurium.primitives
Class Partition
java.lang.Object
allurium.primitives.UIElement
allurium.primitives.Partition
- All Implemented Interfaces:
- AlluriumElement,- ListComponent,- WebElementMeta
Represents a `Partition` element in the UI, extending 
UIElement.
 This class encapsulates the behavior and attributes of partition elements, which are commonly used as containers or structural components in UI layouts.
Features:
- Encapsulates behavior and attributes of partition elements.
- Provides multiple constructors for initialization using:
         - Selenide locators as strings
- Selenium Bylocators
- SelenideElementinstances
 
- Offers static factory methods for convenient creation of `Partition` objects.
Purpose:
- Standardizes the interaction with partition elements in the UI.
- Simplifies the creation and manipulation of partition elements in tests.
Constructors:
- Partition()- Default constructor.
- Partition(String)- Creates a `Partition` using a Selenide locator string.
- Partition(String, String)- Creates a `Partition` using a Selenide locator string and a name.
- Partition(By)- Creates a `Partition` using a Selenium- Bylocator.
- Partition(By, String)- Creates a `Partition` using a Selenium- Bylocator and a name.
- Partition(SelenideElement)- Creates a `Partition` from a- SelenideElement.
- Partition(SelenideElement, String)- Creates a `Partition` from a- SelenideElementwith a name.
Static Factory Methods:
- $partition(By)- Creates a `Partition` using a Selenium- Bylocator.
- $partition(By, String)- Creates a `Partition` using a Selenium- Bylocator and a name.
- $partition(SelenideElement)- Creates a `Partition` from a- SelenideElement.
- $partition(SelenideElement, String)- Creates a `Partition` from a- SelenideElementwith a name.
- $partition(String)- Creates a `Partition` using a Selenide locator string.
- $partition(String, String)- Creates a `Partition` using a Selenide locator string and a name.
- _$partition(String)- Creates a `Partition` using an XPath expression.
Usage Example:
 
 // Creating a partition using a Selenide locator
 Partition partition = $partition("div.partition-class");
 // Creating a partition with a custom name
 Partition namedPartition = $partition(By.cssSelector(".partition-class"), "Custom Partition");
 
 - 
Field SummaryFields inherited from class allurium.primitives.UIElementassignNameMethod, description, id, parent, root, stepsConsoleLoggingEnabled, stepsReportLoggingEnabled, uiElementName, uiElementType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Partition_$partition(String xpath) static Partition$partition(com.codeborne.selenide.SelenideElement selenideElement) static Partition$partition(com.codeborne.selenide.SelenideElement selenideElement, String name) static Partition$partition(String selenideLocator) static Partition$partition(String selenideLocator, String name) static Partition$partition(org.openqa.selenium.By locator) static Partition$partition(org.openqa.selenium.By locator, String 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface allurium.interfaces.AlluriumElementgetRootMethods inherited from interface allurium.interfaces.WebElementMetagetDescription, getMetaKeys, getParent, setAssignNameMethod, setDescription, setParent, setUiElementName
- 
Constructor Details- 
Partitionpublic Partition()
- 
Partition
- 
Partition
- 
Partitionpublic Partition(org.openqa.selenium.By locator) 
- 
Partition
- 
Partitionpublic Partition(com.codeborne.selenide.SelenideElement selenideElement) 
- 
Partition
 
- 
- 
Method Details- 
$partition
- 
$partition
- 
$partition
- 
$partition
- 
$partition
- 
$partition
- 
_$partition
 
-