I need to retrieve the content value from my pseudo element.
script = "return window.getComputedStyle(document.querySelector('small.fa.text-muted.fa-minus'),':before').getPropertyValue('content');";
js = (JavascriptExecutor) webdriver;
content = js.executeScript(script);
System.out.println("content : " + content);
Css
.fa-minus:before {
content: "\f068";
}
My code is returning "?" instead of "\f068". What could be causing this issue and how can I fix it?
Debugging: