We are trying to get the value out of the follows element
When checking with querySelector we see the value
Within dynatrace we are trying to tag the user with #hdnUserNT@value or any other way the session but with no success.
Can it because of it start with input? or something else that we are missing or doing wrong?
Thanks in advance
Solved! Go to Solution.
@Yos N. the reason is that you are trying to get value from input. This rules are generaly (according to my knowledge) usefull for element like span, div etc, not for input. Because Dynatrace is trying to get not value of element, but content of element. For input it's not possible. If code is managed by you, you can create extra element, or better, global JS variable which will provide value for you.
You can also store this value in cookie if it's easier for you 🙂 Generally most of the time we are asking clients for adding JS variable or cookie, because HTML and CSS can change over time and such rules may stop working (css selectors).
Yup, agree with Sebastian (Also based on experiences and failures I've ran into 🙂 although I couldn't find any articles or knowledges or book that 100% confirm this).
But like Sebastian said, you would have a higher chances of success if try to extract it from value instead of users' input. So maybe, try to extract it from web pages after login, instead of InputTextBox that wait for users input.