I'm using the maven project with selenium 3.141.59 dependency.
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
</dependency>
Findby cannot be resolved to a type error
while using @FindBy annotation, I am getting Findby cannot be resolved to a type error. if I'm updating the selenium version to '4.0.0-rc-3' not getting any error.