title: How to use @FindBy annotation in Selenium for span text?
body: <p>I want to know what can I do to get the "Apple" text in span element with @FindBy annotation.</p>
  
  <p>Thats html code:</p>
  
  <pre><code>&lt;span class="ui-cell-data"&gt;Apple&lt;/span&gt;
  </code></pre>
  
  <p>and I tried something like that:</p>
  
  <pre><code>@FindBy(className = "ui-cell-data:Samsung")
  WebElement customerName;
  </code></pre>
  
  <p>but it didn't work!</p>