
XPath Helper Wizard 3.0.24
XPath Helper Plus创建的XPath很短,如果网站发生更改,则不太可能中断。 如果父Xpath字段包含Xpath,则会生成与该父Xpath相关的所..
更新日期:2020年3月11日 分类标签:开发工具 语言:中文 平台:
135KB 2 人已下载 手机查看




XPath Helper Wizard简介
XPath Helper Plus creates xpaths that are short and less likely to break if the website changes.
If parent Xpath field contains an Xpath then all the subsequent Xpaths are generated relative to that parent Xpath.
IMPORTANT: After installing this extension, you must reload any existing tabs or restart Chrome for the extension to work.
Instructions:
1. Open a new tab and navigate to any webpage.
2. Hit Ctrl-Shift-X (or Command-Shift-X on OS X), or click the XPath Helper button in the toolbar, to open the XPath Helper console.
3. Hold down Shift as you mouse over elements on the page. The query box will continuously update to show the XPath query for the element below the mouse pointer, and the results box will show the results for the current query.
4. If desired, edit the XPath query directly in the console. The results box will immediately reflect your changes.
5. Repeat step (2) to close the console.
If the console gets in your way, hold down Shift and then move your mouse over it; it will move to the opposite side of the page.
One word of caution: When rendering HTML tables, Chrome inserts artificial <tbody> tags into the DOM, which will consequently show up in queries extracted by this extension.
Full Credits to Adam Sadovsky (https://github.com/google/xpaf) for creating a great tool.
中文翻译
XPath Helper Plus创建的XPath很短,如果网站发生更改,则不太可能中断。
如果父Xpath字段包含Xpath,则会生成与该父Xpath相关的所有后续Xpath。重要事项:安装此扩展后,必须重新加载任何现有的选项卡或重新启动扩展到工作的Chrome。
BR>说明:
1。打开新选项卡并导航到任何网页。
2。按Ctrl-Shift-X(或OS X上的Command-Shift-X),或单击工具栏中的XPath助手按钮,打开XPath助手控制台。
3。按住Shift键,将鼠标悬停在页面上的元素上。查询框将持续更新以显示鼠标指针下元素的XPath查询,结果框将显示当前查询的结果。
4。如果需要,可以直接在控制台中编辑XPath查询。结果框将立即反映您的更改。
5。重复步骤(2)以关闭控制台。
如果控制台妨碍了您的操作,请按住Shift键,然后将鼠标移到它上面;它将移到页面的另一侧。
一个警告:当呈现HTML表时,Chrome会在DOM中插入人工标记,这将显示在由这个扩展提取的查询中。
亚当·萨多夫斯基(Adam Sadovsky,https://github.com/google/xpaf)创建一个伟大的工具的全部功劳。