title: TypeError: 'WebElement' object is not subscriptable
body: <p>I try to press the Replay button at Spotify Web Player with Python, but get this error. How can I press buttons in a webplayer?</p>
  <pre><code>replay = driver.find_element_by_xpath(&quot;&quot;&quot;/html/body/div[2]/div/div[4]/div[3]/footer/div/div[2]/div/div[1]/div[5]/button&quot;&quot;&quot;)[0]
  replay.click()
  </code></pre>
  <p>Error:</p>
  <pre><code>replay = driver.find_element_by_xpath(&quot;&quot;&quot;/html/body/div[2]/div/div[4]/div[3]/footer/div/div[2]/div/div[1]/div[5]/button&quot;&quot;&quot;)[0]
  TypeError: 'WebElement' object is not subscriptable
  </code></pre>