My selenium script is not returning 'false' for isDisplayed() method. The script fragment is given below :
I am executing this script on the "ClassName" link web element in the below web page :
<html>
<head>
<title>My Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
UserName : <input type="text" id="user"> <br>
DOB : <input type="text" name="dob"> <br>
Password : <input type="password" id="pid" class="pclass"> <br>
Gender : <input type="radio" id="male" name="sex" class="sex">
<label for="male">Male</label><br>              
<input type="radio" id="female" name="sex">
<label for="female">Female</label><br>
Hobbies : <input type="checkbox" id="c1">
<label for="c1">Playing Cricket</label><br>                
<input type="checkbox" id="c2">
<label for="c2">Studying</label><br><br><br><br>     
<input type="button" value="Submit"> <br>
<a style="visibility:hidden" sytle="display:none" class="c1" href="https://www.lambdatest.com/blog/selenium-java-tutorial-class-name-locator-in-selenium/">ClassName</a><br>
<span>I love you</span> <br>
<span>You love me</span> <br>
<span>kids & ladies</span><br>
<span>bat&ball</span>
</body>
</html>