Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

why in the inspector can not copy a text element?

  • 2 réponses
  • 1 a ce problème
  • 8 vues
  • Dernière réponse par cor-el

more options

I needed to know the xPath of the text element on the page (win10 x64, Firefox 56.0b9(64bit)). If you select a text element in the Page Inspector, then all copy options will be inactive.

Why is that? Why can't get the link "../ text ()"? So does Chrome. Why can not I copy a text element?

I wanted to copy xPath in Firefox(55) to Ubuntu, but there was not even an option to "copy xpath". Offensively.

Sorry for my bad english)) Thanks for the help))

I needed to know the xPath of the text element on the page (win10 x64, Firefox 56.0b9(64bit)). If you select a text element in the Page Inspector, then all copy options will be inactive. Why is that? Why can't get the link "../ text ()"? So does Chrome. Why can not I copy a text element? I wanted to copy xPath in Firefox(55) to Ubuntu, but there was not even an option to "copy xpath". Offensively. Sorry for my bad english)) Thanks for the help))
Captures d’écran jointes

Toutes les réponses (2)

more options

Not_included said

I needed to know the xPath of the text element on the page (win10 x64, Firefox 56.0b9(64bit)). If you select a text element in the Page Inspector, then all copy options will be inactive. Why is that? Why can't get the link "../ text ()"? So does Chrome. Why can not I copy a text element? I wanted to copy xPath in Firefox(55) to Ubuntu, but there was not even an option to "copy xpath". Offensively. Sorry for my bad english)) Thanks for the help))
more options

It doesn't make sense to get the path of some text. You can only get the path of a specific tag and that should be the containing tag (i.e. the tag that contains this text: P element in first screenshot).