Copy an element's XPath expression

Help us make DevTools Tips better! Fill out this survey to tell us more about your DevTools habits and frustrations.

Categories: Supported by:

Copy an element's XPath expression

You can easily copy an element's XPath expression from DevTools. This is useful if you need this expression for an automated test for example.

Note that you can then use this xpath expression to find elements again in DevTools.

The Elements panel in Edge showing the copy xpath option in the contextual menu.

See also