Selenium browser element positioning

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.