XPath uses a lot more in element positioning, introducing common Firfox and chrome plugin installation
1, Firfox
Firfox is relatively simple, the main browser comes with the positioning function is also relatively strong domestic and relatively good support plug-in installation
1) Installation
I've installed it here so it can be viewed in my add-ons, and can be installed in "Available add-ons" if not installed
2) Use
Both Firepath and Firefinder can locate elements, Firepath can generate XPath when locating elements, or css,finefinder compare bias to verify that the XPath is correct. F12 specifies the element to be positioned with a small cursor.
When Firefinder inside, remember to remove the "." In Firepath.
2. Chrome
Chrome features an XPath feature directly F12 the element with a small cursor, then right-click the Copy->copy XPath
You can enter the XPath that you just copied via ctrl+f
Selenium browser element positioning