title: NoSuchElement Exception using find_element_by_link_text when implicitly_wait doesn't work?
body: <p>New to python and Selenium and programming for that matter.  </p>
  
  <p>I am trying to automate selenium to hit a specific link.  In this case, I want it to hit the link associated with the link text "B":</p>
  
  <pre><code>&lt;li&gt;&lt;a href="javascript:__doPostBack(&amp;#39;ctl00$IndexControl1&amp;#39;,&amp;#39;B&amp;#39;)"&gt;B&lt;/a&gt;
  </code></pre>
  
  <p>on this website:</p>
  
  <p><a href="http://www.lw.com" rel="nofollow">http://www.lw.com</a></p>
  
  <p>I am using this code:</p>
  
  <pre><code>def get_single_link_using_find_elements_by_link_name(url, link_name):
      driver = webdriver.Firefox()
      driver.get(url)
      driver.implicitly_wait(10)
      time.sleep(20)
      element = driver.find_element_by_link_text(link_name)
      element.click()
  </code></pre>
  
  <p>I added some wait conditions, because I thought the problem might have been a rendering problem, but they didnt help.</p>
  
  <p>I am getting the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python27\programs\selenium commands.py", line 50, in &lt;module&gt;
      get_single_link_using_find_elements_by_link_name(url, link_name)
    File "C:\Python27\programs\selenium commands.py", line 47, in get_single_link_using_find_elements_by_link_name
      element = driver.find_element_by_link_text(link_name)
    File "C:\Python27\lib\site-packages\selenium-2.25.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 237, in find_element_by_link_text
      return self.find_element(by=By.LINK_TEXT, value=link_text)
    File "C:\Python27\lib\site-packages\selenium-2.25.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 671, in find_element
      {'using': by, 'value': value})['value']
    File "C:\Python27\lib\site-packages\selenium-2.25.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 156, in execute
      self.error_handler.check_response(response)
    File "C:\Python27\lib\site-packages\selenium-2.25.0-py2.7.egg\selenium\webdriver\remote\errorhandler.py", line 147, in check_response
      raise exception_class(message, screen, stacktrace)
  NoSuchElementException: Message: u'Unable to locate element: {"method":"link text","selector":"B"}'
  </code></pre>
  
  <p>Oddly enough, the same code WORKS on the following url, which is part of the same site:
  <a href="http://www.lw.com/people?searchIndex=A" rel="nofollow">http://www.lw.com/people?searchIndex=A</a></p>
  
  <p>Any ideas?</p>