https://i.sstatic.net/g52uN.pngLooking for guidance on how to verify the color of placeholder text in an input element using Selenium and Java. In my test scenario, I have an HTML structure like this:
<div class="pe-input">
<label for="input-text-active-PH">Active Basic text input with placeholder :</label>
<input type="text" id="input-text-active-PH" placeholder="Basic text input field" value="">
</div>
Here is the CSS styling for the placeholder text:
.pe-input input::-webkit-input-placeholder,
.pe-input textarea::-webkit-input-placeholder {
font-style: italic;
color: #6d6d6d; }
If anyone could provide assistance on how to fetch the placeholder text color in this setup, it would be greatly appreciated.