title: Auto clicking using selenium
body: <p>By using selenium click, I'm looking to auto download the subtitles that has <strong>'TXT Korean'</strong> in their button tags in the webpage source. I am trying to collect Korean subtitles data for data collection.</p>
  <p>the code below opens the website fine, but wouldn't click the <strong>'TXT 한국어'</strong> part and giving me errors.</p>
  <p><strong>The sourcecode from the website</strong></p>
  <p><code>&lt;button type=&quot;button&quot; class=&quot;ma-1 download-button v-btn v-btn--depressed v-btn--flat v-btn--outlined theme--light v-size--default primary--text&quot; data-title=&quot;[TXT] 한국어&quot;&gt;&lt;span class=&quot;v-btn__content&quot;&gt;&lt;i aria-hidden=&quot;true&quot; class=&quot;v-icon notranslate v-icon--left material-icons theme--light&quot;&gt;save_alt&lt;/i&gt;&lt;button type=&quot;button&quot; class=&quot;primary v-btn v-btn--depressed v-btn--rounded theme--light v-size--x-small&quot;&gt;&lt;span class=&quot;v-btn__content&quot;&gt;TXT&lt;/span&gt;&lt;/button&gt;&lt;/span&gt;&lt;/button&gt;</code></p>
  <p><strong>Python Code</strong></p>
  <pre><code>from selenium import webdriver
  
  driver = webdriver.Chrome(r'C:/Users/ccc/Desktop/chromedriver.exe') 
  driver.get('https://downsub.com/?url=https%3A%2F%2Fwww.ted.com%2Ftalks%2Frachel_kleinfeld_a_path_to_security_for_the_world_s_deadliest_countries%3Flanguage%3Dko%27language%3D%27ko%2r')
  elements = driver.find_element_by_xpath(&quot;//div[@class='layout justify-start']//button[@data-title='[TXT] 한국어']&quot;)
  elements.click()
  </code></pre>
  <p><strong>ERROR</strong></p>
  <pre><code>Traceback (most recent call last):
    File &quot;.\down.py&quot;, line 5, in &lt;module&gt;
      elements = driver.find_element_by_xpath(&quot;//div[@class='layout justify-start']//button[@data-title='[TXT] 한국어']&quot;)
    File &quot;C:\Users\ccc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py&quot;, line 394, in find_element_by_xpath       
      return self.find_element(by=By.XPATH, value=xpath)
    File &quot;C:\Users\ccc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py&quot;, line 976, in find_element
      return self.execute(Command.FIND_ELEMENT, {
    File &quot;C:\Users\ccc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py&quot;, line 321, in execute
      self.error_handler.check_response(response)
    File &quot;C:\Users\ccc\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\errorhandler.py&quot;, line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;xpath&quot;,&quot;selector&quot;:&quot;//div[@class='layout justify-start']//button[@data-title='[TXT] 한국어']&quot;}
    (Session info: chrome=85.0.4183.121)
  
  PS C:\Users\ccc\Desktop&gt; [18904:19076:0928/165026.096:ERROR:ssl_client_socket_impl.cc(963)] handshake failed; returned -1, SSL error code 1, net_error -113
  [18904:19076:0928/165026.332:ERROR:ssl_client_socket_impl.cc(963)] handshake failed; returned -1, SSL error code 1, net_error -113
  [7460:6468:0928/165026.860:ERROR:device_event_log_impl.cc(208)] [16:50:26.860] Bluetooth: bluetooth_adapter_winrt.cc:1074 Getting Default Adapter failed.
  </code></pre>