https://github.com/probably-not/getxpathforuserselection
Useful functions for getting the XPath of user selected data on a webpage.
https://github.com/probably-not/getxpathforuserselection
javascript xpath
Last synced: about 2 months ago
JSON representation
Useful functions for getting the XPath of user selected data on a webpage.
- Host: GitHub
- URL: https://github.com/probably-not/getxpathforuserselection
- Owner: probably-not
- License: mit
- Created: 2018-04-12T10:48:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T11:07:33.000Z (over 8 years ago)
- Last Synced: 2025-02-24T16:53:23.289Z (over 1 year ago)
- Topics: javascript, xpath
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# getXpathForUserSelection
Useful functions for getting the XPath of user selected data on a webpage.
## Usage
As long as you have imported this script into your page so that it is available in your code, the usage is as such:
```
var xpath = getXPathForUserSelection()
```
This will return the xpath query for the selected text.