I am trying to find a way to select an element from a remote webpage by it’s path. The element does not have id so I need to use the path.
I get the page like this:
$page = invoke-WebRequest -Uri ‘server address’
I can see the content with $page.content
I need to get the element at /html/body/p[6]
How ?