cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

henk_stobbe
DynaMight Leader
DynaMight Leader

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)

henk_stobbe_4-1674723615940.png

 

 

henk_stobbe_5-1674723705885.png

KR Henk

 

 

 

 

 

 

1 REPLY 1

ChadTurner
DynaMight Legend
DynaMight Legend

Great Tip/Trick @henk_stobbe Thanks for sharing 🙂 

-Chad

Featured Posts