Package allurium.primitives
Class Line
java.lang.Object
allurium.primitives.UIElement
allurium.primitives.Line
- All Implemented Interfaces:
AlluriumElement,ListComponent,WebElementMeta
Represents a `Line` element in the UI, extending
UIElement.
This class is designed to represent structural or decorative line elements in a user interface. It encapsulates behaviors and attributes specific to line elements, enabling standardized interaction and representation in automated testing or UI frameworks.
Features:
- Encapsulates behaviors and attributes of a `Line` element.
- Provides multiple constructors for initialization:
- Using Selenide locators as strings.
- Using Selenium
Bylocators. - Using
SelenideElementinstances.
- Offers static factory methods for convenient creation of `Line` objects.
Purpose:
- Standardizes the interaction with line elements in the UI.
- Streamlines the creation and manipulation of `Line` objects in test or automation code.
Constructors:
Line()- Default constructor.Line(String)- Creates a `Line` using a Selenide locator string.Line(String, String)- Creates a `Line` using a Selenide locator string and a name.Line(By)- Creates a `Line` using a SeleniumBylocator.Line(By, String)- Creates a `Line` using a SeleniumBylocator and a name.Line(SelenideElement)- Creates a `Line` from aSelenideElement.Line(SelenideElement, String)- Creates a `Line` from aSelenideElementwith a name.
Static Factory Methods:
$line(By)- Creates a `Line` using a SeleniumBylocator.$line(By, String)- Creates a `Line` using a SeleniumBylocator and a name.$line(SelenideElement)- Creates a `Line` from aSelenideElement.$line(SelenideElement, String)- Creates a `Line` from aSelenideElementwith a name.$line(String)- Creates a `Line` using a Selenide locator string.$line(String, String)- Creates a `Line` using a Selenide locator string and a name._$line(String)- Creates a `Line` using an XPath expression.
Usage Example:
// Creating a line using a Selenide locator
Line line = $line("div.line-class");
// Creating a line using a Selenium locator and a custom name
Line namedLine = $line(By.cssSelector(".line-class"), "Custom Line");
-
Field Summary
Fields inherited from class allurium.primitives.UIElement
assignNameMethod, description, id, parent, root, stepsConsoleLoggingEnabled, stepsReportLoggingEnabled, uiElementName, uiElementType -
Constructor Summary
Constructors -
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
-
Line
public Line() -
Line
-
Line
-
Line
public Line(org.openqa.selenium.By locator) -
Line
-
Line
public Line(com.codeborne.selenide.SelenideElement selenideElement) -
Line
-
-
Method Details
-
$line
-
$line
-
$line
-
$line
-
$line
-
$line
-
_$line
-