work, often use the location of page elements, commonly used XPath and CSS path two positioning methods.
Here's a quick introduction to using tools to automatically generate an Element's anchor String.
First introduce the use of Firebug and its extended firepath two tools on Mozilla firefox, which can automatically generate positioning strings and verify that the anchor string you edit can match page Elements.
The two tools are as Follows:
How to Use:
- Open a webpage, such as www.hao123.com;
- Right click on a page Element--use firebug to view the page elements, the mouse click on the top left corner of the Firebug plugin icon or press F12 key, three ways to open the debugging window and enable firebug;
- Select the Firepath window;
- When you click the button of the mouse arrow pattern in the debug window, you can select the elements;
- When an element is selected, an anchor element string XPath or CSS path is automatically generated.
also, The Debug window shows the number of page elements that the anchor string can match, such as:
Used primarily when editing a positional string yourself.
Firefox uses Firebug to get XPath and CSS path