title: AttributeError: 'list' object has no attribute 'click' - Follow Button Instagram Selenium Python
body: <p>I'm trying to create a bot to hit a button in the browser, in another window hit the follow button Instagram and go back to the first window. And It's OK to switch windows, </p>
  
  <p>but I can't did the bot press the follow button in Instagram (I created a bot independent only for hit the follow button and OK but don't work in the new script).</p>
  
  <p>Where am I wrong? The code: </p>
  
  <pre><code>window_after = browser.window_handles[2]
  
  time.sleep(10)
  
  seguir = browser.find_elements_by_xpath('/html/body/div[1]/section/main/div/header/section/div[1]/div[1]/span/span[1]/button').click()
  
  browser.switch_to.window(browser.window_handles[1])
  </code></pre>
  
  <p>The error: </p>
  
  <pre><code>seguir = browser.find_elements_by_xpath('/html/body/div[1]/section/main/div/header/section/div[1]/div[1]/span/span[1]/button').click()
  AttributeError: 'list' object has no attribute 'click'
  </code></pre>
  
  <p>When I put "Element" the error is this:</p>
  
  <pre><code>Message: Unable to locate element: /html/body/div[1]/section/main/div/header/section/div[1]/div[1]/span/span[1]/button
  </code></pre>