Chrome Port of WebDriver Element Locator
To use this extension, simply right click on the web element you wish to locate, select an appropriate locator string and it'll be copied to your clipboard.
This extension will attempt to populate the context menu with usable webdriver XPATH-based findElement commands for the dotnet, python and ruby bindings and Support Locator Library references for the focused web element.
To help prevent buggy tests (and save your time debugging), it will also check the locators for uniqueness, signified by red crosses and green ticks.
In addition, if elements have long, fragile, auto-generated attributes such as id="ctl00_ElementContainer_Inputs_txtForename" it will attempt to locate based on the final (and most significant) part of the value only.
If it struggles to locate via attributes it will also attempt to locate via text value.
After installing the extension a browser restart is recommended to ensure the extension functions as expected.