Get value using jsCode

The example should help you to start with the activity. You can modify the javascript as by need

Had you check the download example result: https://www.uipath.com/hubfs/Documentation/Activities/Inject%20JS.zip

Should be a challenge on selector. Maybe you can share some more details (url, screenshot, F12 Webtools snippets, UiExplorer details…) with us. Thanks