title: How to handle load more button in selenium python
body: <p>I am new to python and i am trying to automate click of load more button present in comment section of instagram using selenium and python. I am able to click only once. After first click the button disappears, I have waited for 10 minutes but it did not appear again. And also the status of the request changed to 302 when click in performed using automation. The status code remain 200 when clicked manually. Please help me guys how to perform click until all comment have been loaded. Any help will be appreciated. here is my code</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.support.ui import WebDriverWait 
  from selenium.webdriver.support import expected_conditions as EC
  from selenium.webdriver.common.by import By
  import time
  
  options = webdriver.FirefoxOptions()
  options.add_argument('start-maximized')
  
  browser = webdriver.Firefox(executable_path='./drivers/geckodriver')
  browser.maximize_window()
  
  url = 'https://www.instagram.com/p/CKCVIu2gDgn'
  browser.get(url)
  browser.implicitly_wait(10) #wait for 10 sec
  load_more = browser.find_element(By.XPATH,'/html/body/div[1]/section/main/div/div[1]/article/div[3]/div[1]/ul/li/div/button/span').click()
  </code></pre>