title: How to extend Selenium's FindBy annotation
body: <p>I'm trying to use Selenium PageObjects to model a page that lacks a lot of convenient <code>id</code> or <code>class</code> attributes on the tags, so I'm finding that I need to develop more creative ways to identify elements on a page. Among them is a pattern like the following:</p>
  
  <pre><code>&lt;div id="menuButtons"&gt;
      &lt;a&gt;&lt;img src="logo.png" alt="New"&gt;&lt;/a&gt;
      &lt;a&gt;&lt;img src="logo2.png" alt="Upload"&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It would be convenient to be able to create a custom findBy search to be able to identify a link by the alt text of its contained image tag, so I could do something like the following:</p>
  
  <pre><code>@FindByCustom(alt = "New")
  public WebElement newButton;
  </code></pre>
  
  <p>The exact format of the above isn't important, but what's important is that it continue to work with <code>PageFactory.initElements</code>.</p>