<div class="inline-check">
span class="ic-check" style="display: inline;">
I am currently facing a challenge in locating the HTML code snippet provided above. This snippet represents a text box that accepts numbers and displays a green check mark when the input is accepted. Despite the style ="display: none;"
attribute turning to inline in the HTML code, the element remains always visible when inspected using XPath.
My attempts to locate the element using XPath have involved checking its size and verifying if it returns True or False. However, due to the element always being present in the DOM, the validation passes even when the green check mark is not displayed. What techniques or methods should be employed to accurately locate such elements?