Java Reflection error trying to convert Field into WebElement
<p>I'm struggling with i believe is a reflection problem.</p>

<p>Here is the thing,
On my automation project I'm trying to create a helper class to validate Page Labels from my web application, to that i create a @annotation which contain just a label field.</p>

<p>It looks like this:</p>

<pre><code>@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface ExpectedLabel{
    String label() default "";
}
</code></pre>

<p>At my Page Class i have the field:</p>

<pre><code>@ExpectedLabel(label="Faça seu Login")
@FindBy(how = How.XPATH, using = "//*[@id='login']/form/h3")
private WebElement facaSeuLoginLabel;
</code></pre>

<p>And here is my helper class method to validate labels:</p>

<pre><code>@SuppressWarnings("rawtypes")
public boolean validateLabels(Class validationClass){
    for (Field field: validationClass.getDeclaredFields()) {
        if(field.getType() ==  WebElement.class &amp;&amp; field.isAnnotationPresent(ExpectedLabel.class)){
            field.setAccessible(true);
            ExpectedLabel expectedLabel = field.getAnnotation(ExpectedLabel.class);
            if (StringUtils.isNotBlank(expectedLabel.label())){
                try {
                    WebElement element = (WebElement) field.get(WebElement.class);
                    if(!StringUtils.equals(element.getText(), expectedLabel.label())){
                        LoggerUtil.warn("O campo "+field.getName()+" da Page "+validationClass.getSimpleName()+" tem um label invalido! Esperado : ("+expectedLabel.label()+") Obtido: ("+element.getText()+")!", validationClass.getSimpleName());
                    }
                } catch (IllegalArgumentException e) {
                    e.printStackTrace();
                } catch (IllegalAccessException e) {
                    e.printStackTrace();
                }
            }
        }
    }
    return true;
}
</code></pre>

<p>The problem is, i have to call WebElement.getText() to have acess to the Real Page label and then compare to that one in the annotation @ExpectedLabel.label.
Whatever I tried, just cant convert field into WebElement.</p>

<p>I already tried to create an implementation of WebElement called WebElementImpl and done the conversion, but still doesn't worked. 
Other approach that doesn't worked was trying to call the getText() method directly from Field, getting his public methods, but i don't think that is possible.</p>

<p>Here is the exception i get when tried to convert the objects:</p>

<pre><code>java.lang.IllegalArgumentException: Can not set org.openqa.selenium.WebElement field com.org.pages.LoginPage.facaSeuLoginLabel to java.lang.Class
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
    at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:55)
    at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)
    at java.lang.reflect.Field.get(Field.java:379)
    at com.org.helpers.LabelValidatorUtil.validateLabels(LabelValidatorUtil.java:20)
    at com.org.telas.LoginPageTest.loginPageValidationTest(LoginPageTest.java:26)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
</code></pre>

<p><em>Obs: WebElement is an interface, so how can i make the conversion?
New approaches to solve the problem are welcome.</em></p>