Class Partition

java.lang.Object
allurium.primitives.UIElement
allurium.primitives.Partition
All Implemented Interfaces:
AlluriumElement, ListComponent, WebElementMeta

public class Partition extends UIElement
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 By locators
    • SelenideElement instances
  • 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:

Static Factory Methods:

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");
 
 
  • Constructor Details

    • Partition

      public Partition()
    • Partition

      public Partition(String selenideLocator)
    • Partition

      public Partition(String selenideLocator, String name)
    • Partition

      public Partition(org.openqa.selenium.By locator)
    • Partition

      public Partition(org.openqa.selenium.By locator, String name)
    • Partition

      public Partition(com.codeborne.selenide.SelenideElement selenideElement)
    • Partition

      public Partition(com.codeborne.selenide.SelenideElement selenideElement, String name)
  • Method Details

    • $partition

      public static Partition $partition(org.openqa.selenium.By locator)
    • $partition

      public static Partition $partition(org.openqa.selenium.By locator, String name)
    • $partition

      public static Partition $partition(com.codeborne.selenide.SelenideElement selenideElement)
    • $partition

      public static Partition $partition(com.codeborne.selenide.SelenideElement selenideElement, String name)
    • $partition

      public static Partition $partition(String selenideLocator)
    • $partition

      public static Partition $partition(String selenideLocator, String name)
    • _$partition

      public static Partition _$partition(String xpath)