title: Selenium: Element not located via LINK_TEXT or PARTIAL_LINK_TEXT
body: <p>I am attempting to find a robust way to locate the logout link in a dropdown user menu in a web app. This is the html for for the link:</p>
  
  <pre><code>&lt;a href="logout.jsp"&gt;Logout&lt;/a&gt; 
  </code></pre>
  
  <p>I have attempted the following:</p>
  
  <pre><code>    /** The logout link */
  @FindBy(how = How.PARTIAL_LINK_TEXT, using = "Logout")
  private WebElement logoutLink;
  </code></pre>
  
  <p>and  </p>
  
  <pre><code>    /** The logout link */
  @FindBy(how = How.LINK_TEXT, using = "Logout")
  private WebElement logoutLink;
  </code></pre>
  
  <p>However, I keep getting a NoSuchElementException when attempting the access the logout link. The LINK_TEXT method worked previously and mysteriously stopped working in the last few days. I tried the PARTIAL_LINK_TEXT method just for kicks and it fails as well. Is there any reason anyone can give me why this is failing to locate the link. I use PageFactory.initElements on the class that includes this link and other web elements are located without a problem.</p>