Hi,
I'm trying to work out how to programmatically force an element state to e.g., hover, active etc. as per the Inspector/dev-tools "force element state" command, so I can query the computed style on an element when it's in a particular state.
I'm having trouble seeing how to do this if there's no InspectorBackend available. I'm actually using CefGlue but I accept it might not have the capacity to do this, I'm prepared to extend it to do so if needed.
I was hoping there might be a way via JavaScript but haven't had any luck there. Even simulating a mousemove to generate the hover state might work though it will be problematic for over pseudoclass states.
Thanks for any advice
Dylan
P.S. I've tried the remote debugging port, with some limited success - I can find the node and send CSS.forcePseudoState to set the 'hover' state, then call CSS.getMatchedStylesForNode to determine that a particular style is applying, but for some reason it's not affecting the outcome of CSS.getComputedStyleForNode (and certainly not of the regular window.getComputedStyle).