getting the value of a pseudo-element with protractor
Posted
by
bodine
on Stack Overflow
See other posts from Stack Overflow
or by bodine
Published on 2013-11-11T21:51:26Z
Indexed on
2013/11/11
21:52 UTC
Read the original article
Hit count: 1713
I'd like to verify the text content of a pseudo-element. The promise returned from using ptor.executeScript("window.getComputedStyle(jQuery('.my-class')[0], ':after').content").then(function(data){
console.log(arguments) // {'0':null}
});
I've also tried dropping that in the expectation, but I'd guess that fails for the same reason.
Since the CSS Declaration for this is pointing at one of the element's attributes anyway, should I just try to read that attribute?
© Stack Overflow or respective owner