My problem is different of what has been posted:
- value for the annotation attribute must be constant expression OR
- The value for annotation attribute Min.value must be a constant expression
I have already made it final
and static
still it is giving me that error on hovering over it.
Here is my code:
Login.java
@FindBy(xpath = Constants.user_email)
public static WebElement user_email;
Constants.java
public static final String user_email= CONFIG.getProperty("user_email");
What I tried to fix this:
I changed this public static Properties CONFIG = new Properties();
to this
public static final Properties CONFIG = new Properties();