How to quickly test a css selector in the brower console used for user/action/sesion TAG

Hello,

use:

document.querySelector(“anycsstag”).textContent or

document.querySelector(“anycsstag”).innerText

(Normally please do not forget the . or #)

Extra info:

CSS selector. Use when the user’s identifier is visible on the page. This mechanism captures the first match innerText/textContent value (available for browsers that support querySelector)

KR Henk

10 Likes

Great Tip/Trick @henk_stobbe Thanks for sharing :slightly_smiling_face: