PartialLinkText

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

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

This annotation allows you to specify partial link text 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 partial link text to match against. If left empty, the enum entry name will be used as the property name in the generated code.