title: Xpath exists in chrome, but not in my script. no such element: Unable to locate element:
body: <p>I am trying to find the button element by xpath, which is found when I type it in chrome, but the script gives me the no attribute id error. I have tried switching into an iframe and frame, I have used webdriver.wait to wait for the button element to show and none of those work. I would also like to cycle through and click the first button if it says "Follow" and then move to the next button if it says "Follow".The Script runs on chrome and I am trying to do this on instagram <a href="https://i.stack.imgur.com/zbdC1.png" rel="nofollow noreferrer">Html here</a> </p>
  
  <pre><code> popup = browser.find_element_by_xpath('//button[@class="_qv64e _gexxb _4tgw8 _njrw0"]')
  
   ActionChains(browser)\
  .move_to_element(popup).click()\
  .perform()
  </code></pre>
  
  <p><code>File "/Users/trevaroneill/PycharmProjects/Insta/instafollow.py", line 91, in &lt;module&gt;
      popup = browser.find_element_by_xpath('//button[@class="_qv64e _gexxb _4tgw8 _njrw0"]')</code></p>
  
  <pre><code>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//button[@class="_qv64e _gexxb _4tgw8 _njrw0"]"}
  </code></pre>