What is the best way to initialize a variable with the Selenium's FindBy
annotation in Kotlin?
Something like
@FindBy(id = "example")
private lateinit var button: WebElement
or
@FindBy(id = "example")
private val button: WebElement? = null
or
@FindBy(id = "example")
private var button: WebElement? = null
or something else?
Note that all the previous methods works perfectly.