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