S
S
spaceatmoon2018-06-16 17:45:23
Parsing
spaceatmoon, 2018-06-16 17:45:23

Is there a visual XPath/CSSPath generator?

What is the essence of the problem. For example, I open a site and without going into dev-tools, having a visual XPath generator at hand, clicking on the elements I need, I get their paths, whether in the csspath or xpath view. Is there such a thing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Fov, 2018-06-21
@Roman-Fov

https://github.com/trembacz/xpath-finder
But I will warn you right away. For such things, the xpath turns out to be quite redundant and at the slightest change in the page everything stops working.
In general, such things are rarely useful, because the result of their work is often useless.
It is rarely required to specify the full xpath before the element, usually the tasks are formulated differently.
For example: Select a button with a certain attribute, regardless of its nesting levels, or if it comes after another identical button.
The interface for setting up such details will either be identical in complexity to learning xpath or surpass it.....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question