Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-SeElementXPath #199

Open
itfranck opened this issue Dec 13, 2020 · 0 comments
Open

Get-SeElementXPath #199

itfranck opened this issue Dec 13, 2020 · 0 comments
Assignees

Comments

@itfranck
Copy link
Collaborator

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)
@itfranck itfranck added this to the v4.0.0-preview3 milestone Dec 13, 2020
@itfranck itfranck self-assigned this Dec 13, 2020
@itfranck itfranck removed this from the v4.0.0-preview3 milestone Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant