If you want to see the exact element being interacted with by Selenium, you can write code to highlight element using Selenium WebDriver. Also sometimes when we work on automation script creation in debug mode, sometimes it is helpful to see the current element being interacted with, on the webpage. To do this, we highlight element using Selenium WebDriver.
Selenium provides so many capabilities to perform test automation which makes it easy to perform any webpage-based task. This page has a working code example which can be used in your code if you want to highlight element using Selenium WebDriver and Java.
Example code to Highlight element using Selenium WebDriver