title: Selenium Python: Unable to scroll and click on Load more stories button
body: <p>I am new to Selenium and would appreciate advice. I am trying to click on the load more stories button on NPR's website (<a href="https://www.npr.org/sections/news/" rel="nofollow noreferrer">https://www.npr.org/sections/news/</a>). My code seems good, but when I run it more stories are never loaded. I don't get an error at the same time the code just doesn't behave as expected.</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions as EC
  
  driver = webdriver.Firefox(executable_path='/home/myname/projects/myproject/geckodriver')
  # implicit wait for 5 seconds
  driver.implicitly_wait(5)
  #driver.maximize_window()
  driver.get('https://www.npr.org/sections/news/')
  
  element = driver.find_element(By.XPATH, '/html/body/main/div[2]/section/div[7]/button')
  driver.execute_script(&quot;arguments[0].scrollIntoView();&quot;, element)
  driver.execute_script(&quot;arguments[0].click();&quot;, element)
  </code></pre>