TagName

@Target(allowedTargets = [AnnotationTarget.FIELD])
annotation class TagName(val locator: String = "", val cacheLookup: Boolean = true)

Instructs kolibrium-codegen to generate source code for locating a single element using the "tagName" locator strategy.

This annotation allows you to specify an element's tag name for locating an element in the generated code. If locator is empty, the name of the enum entry will automatically be used as the property name in the generated code.

Properties

Link copied to clipboard
val cacheLookup: Boolean = true

If true (default), the element will be looked up only once and cached for subsequent accesses, similarly to Page Factory's @CacheLookup annotation. If false, a new lookup will be performed each time the element is accessed.

Link copied to clipboard

The element's tag name to search for. If left empty, the enum entry name will be used as the property name in the generated code.