There are more than one span elements on my html and I want to click Apple but there is a problem that this list have same class and no id. How can I get Apple with @FindBy
<span class="ui-cell-data">Apple</span>
<span class="ui-cell-data">Samsung</span>
I tried something like that but it didn't work.
@FindBy(className = "ui-cell-data:Apple")
WebElement customerName;