I tried getting the placeholder color using the below code snippet in Puppeteer. But, I am getting rgb(0,0,0) for all the colors.
await ele.evaluate((el) => getComputedStyle(el, "::placeholder")
.getPropertyValue("Color"));
Here is my CSS code:
<style>
input[id="email"]::placeholder {
color: #FFC0CB;
opacity: 1; /* Firefox */
}
</style>
Here is my HTML code:
<input type="email" id="email" name="email" placeholder="Enter Email"<br>