The dropdown list is triggered by an input field. Once the dropdown list is shown, I wanted to select the item based on the index. When I am using PageFactory
, (@FindBy
) to identify the WebElement
, there is always the NullPointerException
error.
My question is, is there a (not complicated) way for me to use Select in PageFactory?