• Get element XPath

    Parameters

    • target: any

      target element

    • Optionaloptimised: boolean

      when id attribute of element is present the xpath can be simplified to contain id

    Returns string