Is there a way to capture Pseudo elements using TestComplete?
I have '::after' in my code and I have to capture it to read the Computed Style of it. Now, how do I capture ::after ?
Go to Solution.
Thanks for the reply. I figured out the solution myself which is pasted below.
//object is the node inside which pseudo element is available
var window = object.ownerDocument.defaultView;
var style = window.getComputedStyle(object,":after");
var computedStyle = style["content"];
View solution in original post
Could you please give us more information? Images or some info about what you have inside :after will help.
I'm happy to hear this!
Thanks for sharing the solution with us. Good luck in testing 🙂