title: Python Selenium: How to navigate Javascript based navigation
body: <p>So the page in question is <a href="http://www.leparking.fr/voiture-occasion/Porsche--targa-g.html#!/voiture-occasion/Porsche--targa-g.html%3Fslider_millesime%3D1940%7C1985" rel="nofollow noreferrer">here</a>, I want to navigate pagination having following markup:</p>
  <pre><code> &lt;li class=&quot;btn-next&quot;&gt;
  &lt;a href=&quot;javascript:ctrl.set_pageReload(2)&quot;&gt;Suivant&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  <p>If you notice, JS method is being called here. So far I have done this:</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions as EC
  
  
  driver = None
  driver = webdriver.Firefox()
  wait = WebDriverWait(driver, 30)
  
  
  def fetch(url):
      driver.get(
          'http://www.leparking.fr/voiture-occasion/Porsche--targa-g.html#!/voiture-occasion/Porsche--targa-g.html%3Fslider_millesime%3D1940%7C1985')
  
      elem_more = wait.until(EC.element_to_be_clickable((By.LINK_TEXT, &quot;Suivant&quot;)))
      elem_more.click()
  
  
  fetch(None)
  </code></pre>
  <p>It does hover the element but does not navigate on click. What should I do?</p>
  <p>Thanks</p>