I'm trying to check if a span is clicked for automation purposes, the only change in the element is ::after inside the span, how can I verify the presence of ::after ?
            Asked
            
        
        
            Active
            
        
            Viewed 28 times
        
    0
            
            
         
    
    
        Alan Díaz
        
- 43
- 1
- 8
- 
                    how is the `::after` *added* by the click? – Jaromanda X Apr 23 '20 at 02:51
- 
                    have you tried using the CSS with `:after` pseudo element? – supputuri Apr 23 '20 at 03:08
- 
                    Pretty sure you can't. pseudo elements are not in the DOM and so cannot be selected by Javascript – Paulie_D Apr 23 '20 at 05:50
- 
                    @Paulie_D in this particular case it's possible because a read-only is need to verify this – Temani Afif Apr 23 '20 at 08:22