Xpath tools
Jump to navigation
Jump to search
Tools for xpath selection
chrome javascript console
- 選單: 工具 -> 開發人員工具 -> Console
- 輸入 $x("//img") ,按 Enter。就會顯示符合 xpath 規則的結果[1]:
image hosted by flickr
chrome extension
- 輸入 ctrl + shift + x 開始 XPath Helper console
- 輸入 xpath 規則。就會凸顯符合 xpath 規則的網頁元件地方
image hosted by flickr
firefox extension
Firebug + FirePath for Firefox
- 選單: 工具 --> 網頁開發者 --> Firebug --> 開啟 Firebug
- 切換到 FirePath 標籤
- 輸入 xpath 規則。就會凸顯符合 xpath 規則的網頁元件地方