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 XPath from Selector #214

Open
hans-friedhelm opened this issue Mar 26, 2021 · 3 comments
Open

Get XPath from Selector #214

hans-friedhelm opened this issue Mar 26, 2021 · 3 comments

Comments

@hans-friedhelm
Copy link

Is there a function to get the XPath string from an Selector object?

@Gallaecio
Copy link
Member

There is no public property to read it. Would you like to make this a feature request to provide such a functionality?

As a workaround, you can read it from the private property _expr. But that property may be changed or removed in the future without a warning.

@hans-friedhelm
Copy link
Author

Thank you very much for your helpful answer!
This feature would be super helpful for my use case. Would you like to implement it?

@Gallaecio
Copy link
Member

I’m not sure I’ll implement it myself, definitely not before #181 is merged, but it looks like a good improvement to have.

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

2 participants