Package org.fluentlenium.core.inject
Annotation Type NoInject
-
@Target(FIELD) @Retention(RUNTIME) public @interface NoInject
When this annotation is applied on a field FluentLenium injection is disabled for that.It may be useful in scenarios when one wants to have a simple instance field setting it manually, and not relying on injection either using a Selenium
Find...
annotation, or without using one relying on the field name based element lookup.With that said if a field is marked as
NoInject
, none of the SeleniumFind...
annotations are necessary on that field, because it won't have any effect.