title: Finding element with Selenium on Python
body: <p>I am trying to automate the clicking of "next" on my university's online lecture when the current slide ends as it requires the user to manually press "next" whenever the slide has ended.</p>
  
  <p>Using selenium with python, managed to get to webpage, login and navigate to the lecture slides itself but am unable to progress further</p>
  
  <p><a href="https://pastebin.com/D39DTuzq" rel="nofollow noreferrer">HTML Element on pastebin</a> trying to element on line 3397</p>
  
  <p>I am trying to get the <code>elapsedTime / totalTime</code> and </p>
  
  <pre><code>while ( currentSlide != totalSlide )
      if elapsedTime == totalTime
          find and click on 'next'
  </code></pre>
  
  <p>I've tried:</p>
  
  <pre><code>duration = driver.find_element(By.XPATH,"//div[@class='label time'][@style='display: none;]")
  duration = driver.find_element(By.XPATH,"//div[@class='.label.time'][@style='display: none;']")
  </code></pre>
  
  <p>Any help would be appreciated!</p>
  
  <p>EDIT:</p>
  
  <p>Got it working suggested by Lukas</p>
  
  <p><code>content = urllib.request.urlopen(URL, timeout=10).read().decode("utf-8")
  duration = content.split("&lt;div class="label time" style="display: none;"&gt;")[1].split("&lt;/div&gt;")[0]</code></p>