Class ElementInformation

java.lang.Object
com.shaft.gui.element.internal.ElementInformation

public class ElementInformation extends Object
Container for captured element metadata used by SHAFT element actions.
  • Constructor Details

    • ElementInformation

      public ElementInformation()
      Creates an empty element information container.
  • Method Details

    • fromList

      public static ElementInformation fromList(List<Object> elementInformation)
      Creates an ElementInformation instance from the legacy list payload structure.
      Parameters:
      elementInformation - list payload returned by helper methods
      Returns:
      mapped ElementInformation instance
    • getElementText

      public String getElementText()
      Returns the detected element text using SHAFT's text-resolution strategy.
      Returns:
      resolved element text
    • getElementTag

      public String getElementTag()
      Returns the element tag name.
      Returns:
      HTML tag name for the represented element
    • toList

      public List<Object> toList()
      Converts this object into the legacy list payload structure.
      Returns:
      list payload compatible with existing helper contracts