title: How to click on a button with Selenium
body: <p>I try to catch the &quot;next&quot; button in a viewer with Selenium in Python, but nothing works and I get an error message.</p>
  <p>The code I executed:</p>
  <pre class="lang-py prettyprint-override"><code>from selenium import webdriver
  from selenium.webdriver.support.ui import WebDriverWait
  
  options = webdriver.ChromeOptions()
  options.add_argument(&quot;start-maximized&quot;)
  options.add_experimental_option(&quot;excludeSwitches&quot;, [&quot;enable-automation&quot;])
  options.add_experimental_option('useAutomationExtension', False)
  driver = webdriver.Chrome(options=options, executable_path=r'chromedriver.exe')
  driver.get('https://web.nli.org.il/sites/NLI/Hebrew/digitallibrary/pages/viewer.aspx?&amp;presentorid=MANUSCRIPTS&amp;docid=PNX_MANUSCRIPTS990000907570205171-1')
  WebDriverWait(driver, 10)
  </code></pre>
  <p>Until now, everything has been fine. This is where the issue arises.</p>
  <p>I want to click on the next arrow:
  <a href="https://i.stack.imgur.com/HkDou.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HkDou.png" alt="enter image description here" /></a></p>
  <p>I get the following code while inspecting the source code of this arrow:
  <code>&lt;div id=&quot;next&quot; class=&quot;left&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;next&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;</code></p>
  <p>So these are my attempts:</p>
  <p><strong>XPath</strong></p>
  <pre><code>driver.find_elements_by_xpath('//*[@id=&quot;next&quot;]')
  </code></pre>
  <p>returns an empty list.</p>
  <p><strong>id</strong></p>
  <pre><code>driver.find_elements_by_id(&quot;next&quot;)
  </code></pre>
  <p>returns an empty list.</p>
  <p>So, <em>how can I catch this button and click on it?</em></p>