How to find xpath of an element in firefox inspector

后端 未结 10 745
清酒与你
清酒与你 2020-12-14 05:57

In Firefox 50.1, Firebug is no longer available so I have to use the inspector but I cannot find copy ---> xpath option that was available in Firebug. How can I find the xpa

10条回答
  •  没有蜡笔的小新
    2020-12-14 06:35

    Xpath Using Firefox Console: **
    Answer referenced from **Xpath Using Firefox Console in selenium webdriver

    Steps:

    Press F12( common for all browsers), Now firefox open developer tool like below.

    1. Naviagte to console tab

    2. On the console editor we can verify our Xpath

    3. For verifying xpath we have to use our xpath in following format : $x("xpath")

提交回复
热议问题