title: StaleElementReferenceException when I try to click the "n others" in "Liked by someone and n others" of an Instagram post, using Selenium and Python
body: <p>So as you know, when you open a post on Instagram on Desktop, it will show "Liked by someone and 400 others". I am trying to click the "400 others" button using selenium, so that I could then go on to scrape the followers' names. 
  <a href="https://i.stack.imgur.com/TO4qt.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TO4qt.jpg" alt="the button I try to get Selenium to click"></a>I retreived the Xpath of the button as /html/body/div<a href="https://i.stack.imgur.com/TO4qt.jpg" rel="nofollow noreferrer">1</a>/section/main/div/div/article/div[2]/section[2]/div/div[2]/button</p>
  
  <p>However, an error arises, which is the StaleElementReferenceException.
  Below are my codes:</p>
  
  <pre><code>likes = driver.find_element_by_xpath("/html/body/div[1]/section/main/div/div/article/div[2]/section[2]/div/div[2]/button")
  actions.move_to_element(likes).perform()
  likes.click()
  </code></pre>
  
  <p>The error happens on the 2nd line, actions.move_to_element(likes).perform()</p>
  
  <p>I wonder whether anyone knows how I can fix it.</p>