Open
Description
This ticket is aimed toward lessening the need for the actual browser for finding stuff while developping without ever having to use F12 developper tool.
The first item on the list:
An utility function to generate absolute xpath from the selected element.
Here's the current result.
Get-SeElementXPath -Element $MyElement
# Result
//html/body/div/div/div[2]/div/div/div/nav/div[2]/div[2]/ul/div[3]/div/li
It definitely does not produce the best xpath but give an idea of where you are in the tree.
Some ideas:
- Same but for CSS Selector
- Produce xpath based on different factor (eg: Classname or contains text)