Open topic with navigation

com.hp.lft.sdk.web

## Class XPathDescription

- java.lang.Object
- - com.hp.lft.sdk.internal.PropertiesDescriptionBase
  - - com.hp.lft.sdk.PropertiesDescription
    - - com.hp.lft.sdk.web.XPathDescription

- All Implemented Interfaces:
    CloneableObject, Description, java.lang.Cloneable

      public class XPathDescription
      extends PropertiesDescription

  This class can be used to describe web objects using xpath.

- - ### Field Summary

    - ### Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `properties`

  - ### Constructor Summary

    Constructor and Description
    `XPathDescription()` Constructs a new XPathDescriptor instance.
    `XPathDescription(java.lang.String xpath)` Constructs a new XPathDescriptor instance with the given xpath.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `toString()`

    - ### Methods inherited from class com.hp.lft.sdk.PropertiesDescription

      `clone`

    - ### Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase

      `cloneTo, getValueAs, getValueAsStringProperty, insertValue`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### XPathDescription

          public XPathDescription(java.lang.String xpath)

      Constructs a new XPathDescriptor instance with the given xpath.
      Parameters:
        `xpath` - the XPath to be used for describing a test object.

    - #### XPathDescription

          public XPathDescription()

      Constructs a new XPathDescriptor instance. Please don't use this constructor and instead use the overload: `XPathDescription(String)`.

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`