Python – selenium – cannot find any elements on the page [on hold]

I would like to write a program to download PDF files form the website using selenium module. The scripts logs into my account on that website but than it cannot find any elements on the page (selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: Specyfikacje rozliczeniowe). Ive suspected that the page does not load fast enough and Ive added a line for program to wait 30 seconds but it did not change anything. What am I doing wrong?

Here is part of the Python code:

browser = webdriver.Firefox() moveToPDF = browser.find_element_by_link_text("Specyfikacje rozliczeniowe") moveToPDF.click() 

And here is part of the HTML code:

<nav id="sidebar" class="sidebar nav-collapse collapse">   <ul id="side-nav" class="side-nav">     <li class="active">       <a href="/"><i class="fa fa-home"></i> <span class="name">Start</span></a>     </li>        <li>         <a href="/PublisherDisp/Disps" data-no-pjax><i class="fa fa-pencil"></i><span class="name">Awizacja numerów</span></a>       </li>        <li class="panel">         <a class="accordion-toggle collapsed" data-toggle="collapse"            data-parent="#side-nav" href="#menu-levels-productinfo"><i class="fa fa-folder-open"></i><span class="name">Informacje o produktach</span></a>          <ul id="menu-levels-productinfo" class="panel-collapse collapse">              <li class="panel">               <a class="accordion-toggle collapsed" data-toggle="collapse"                  data-parent="#menu-levels-productinfo" href="#menu-levels-product"><span class="name">Dane produktów</span></a>                <ul id="menu-levels-product" class="panel-collapse collapse">                    <li class="panel">                     <ul>                           <li><a href="/PublisherProduct/Title">Tytuły</a></li>                                               <li><a href="/PublisherProduct/Variant">Mutacje</a></li>                                               <li><a href="/PublisherProduct/Product">Numery wydawnicze</a></li>                     </ul>                   </li>                </ul>             </li>              <li class="panel">               <a class="accordion-toggle collapsed" data-toggle="collapse"                  data-parent="#menu-levels-productinfo" href="#menu-levels-return"><span class="name">Informacje o zwrotach</span></a>                <ul id="menu-levels-return" class="panel-collapse collapse">                    <li class="panel">                     <ul>                           <li><a href="/PublisherReturn/LocalSystem">wg CL</a></li>                                               <li><a href="/PublisherReturn/Province">wg wojew&#243;dztw</a></li>                                               <li><a href="/PublisherReturn/Poviat">wg powiat&#243;w</a></li>                                               <li><a href="/PublisherReturn/Commune">wg gmin</a></li>                                                                     <li><a href="/PublisherReturn/ProductVariant">mutacji</a></li>                     </ul>                   </li>               </ul>             </li>              <li class="panel">                <ul>                 <li>                   <a href="/PartnerDoc/ReturnSpecifications" data-no-pjax><span class="name">Specyfikacje rozliczeniowe</span></a>                 </li>               </ul>             </li>          </ul>       </li>     </ul>  </nav>    <div data-role="page" class="wrap">