Class ElementInformation
java.lang.Object
com.shaft.gui.element.internal.ElementInformation
Container for captured element metadata used by SHAFT element actions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementInformationCreates anElementInformationinstance from the legacy list payload structure.Returns the element tag name.Returns the detected element text using SHAFT's text-resolution strategy.toList()Converts this object into the legacy list payload structure.
-
Constructor Details
-
ElementInformation
public ElementInformation()Creates an empty element information container.
-
-
Method Details
-
fromList
Creates anElementInformationinstance from the legacy list payload structure.- Parameters:
elementInformation- list payload returned by helper methods- Returns:
- mapped
ElementInformationinstance
-
getElementText
Returns the detected element text using SHAFT's text-resolution strategy.- Returns:
- resolved element text
-
getElementTag
Returns the element tag name.- Returns:
- HTML tag name for the represented element
-
toList
-