If Chrome Dev tools if you select the element in the source pane and right click, then you will see the “Copy CSS Path” option.
In newer versions of Chrome, this is (right-click) > Copy > Copy selector
.
You can also get the XPath with (right-click) > Copy > Copy XPath
More Related Contents:
- Getting Chrome to accept self-signed localhost certificate
- How to make audio autoplay on chrome
- Using Chrome’s Element Inspector in Print Preview Mode?
- How can I get the URL of the current tab from a Google Chrome extension?
- Save the console.log in Chrome to a file
- What does ==$0 (double equals dollar zero) mean in Chrome Developer Tools?
- Failed to load resource under Chrome
- What’s the difference between “Normal Reload”, “Hard Reload”, and “Empty Cache and Hard Reload” in Chrome?
- How can I open my extension’s pop-up with JavaScript?
- How to verify an XPath expression in Chrome Developers tool or Firefox’s Firebug?
- Automatically open Chrome developer tools when new tab/new window is opened
- Chrome CORS error on request to localhost dev server from remote site
- Chrome DevTools Devices does not detect device when plugged in
- How to reposition Chrome Developer Tools
- Bizarre Error in Chrome Developer Console – Failed to load resource: net::ERR_CACHE_MISS
- CSS Border radius not trimming image on Webkit
- Inject HTML into a page from a content script
- Selenium WebDriverException: unknown error: call function result missing ‘value’ while calling sendkeys method
- “Inspect” a hover element?
- How to view or edit localStorage
- chrome.identity User Authentication in a Chrome Extension
- Can I modify outgoing request headers with a Chrome Extension?
- CORS error on request to localhost dev server from remote site
- Check whether network response is coming from server or Chrome cache
- How to make a cross-origin request in a content script (currently blocked by CORB despite the correct CORS headers)?
- Google Chrome Extensions – Open New Tab when clicking a toolbar icon
- Disable download button for Google Chrome?
- Duplicate headers received from server
- How to keep a flex item from overflowing due to its text? [duplicate]
- How to checkout and BUILD specific chromium tag/branch without download the FULL source code of all history?