We want to use userTagging but not sure what should be used in tag . I got below element from my Page. Can somebody help to user stand whether it should be meta data tag or CSS selector and what value I should use example input name = USER something
<table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td><input name="USER" id="singlepoint-username" style="width: 150px;" type="text" maxlength="256" autocomplete="off"></td>
Solved! Go to Solution.
There's really good documentation online for CSS selectors here https://api.jquery.com/category/selectors/
And you can test your selector by opening dev tools in Chrome, switching to the console tab, and running document.querySelector() function inside it. If it returns your element, then Dynatrace will also find it.
In your case, I would try with input#singlepoint-username
When we check .navTxt>label we get a long answer:
Is there a way get the value of title?
I should've mentioned this. There is a long answer because document.querySelector() will return in the console the entire element as it appears in the HTML of the page. However, when Dynatrace extracts a user tag based on the selector, it will always show only the inner text of that element. So, in the example of your screenshot, Dynatrace would get the user tag from that element as "Welcome S140_qa2" (because that's the inner text of that element).