title: How to click on the label with text Boy within https://www.sneaksup.com/register using Selenium and Python
body: <p>I want to get data from the txt file line by line. The program does not continue to run after the email line. How can I fix this?</p>
  <pre><code>from selenium import webdriver
  import time
  from selenium.webdriver.remote.webelement import WebElement
  
  def slow_type(element: WebElement, text: str, delay: float=0.1):
      &quot;&quot;&quot;Send a text to an element one character at a time with a delay.&quot;&quot;&quot;
      for character in text:
          element.send_keys(character)
          time.sleep(delay)
  
  browser = webdriver.Chrome()
  browser.get(&quot;https://www.sneaksup.com/register&quot;)
  
  
  with open('Gmail.txt') as f:
      lines = f.readlines()
  
  for l in lines:
  
      browser.get(&quot;https://www.sneaksup.com/register&quot;)
      browser.find_element_by_xpath(&quot;//*[@id='FirstName']&quot;).send_keys(&quot;Baran&quot;)
      browser.find_element_by_xpath(&quot;//*[@id='LastName']&quot;).send_keys(&quot;Baran&quot;)
  
      sif = &quot;187400Baran*&quot;
      sifre = browser.find_element_by_xpath(&quot;//*[@id='Password']&quot;)
      slow_type(sifre, sif)
      time.sleep(0.5)
      el = browser.find_element_by_xpath(&quot;//*[@id='Phone']&quot;)
      text = &quot;5511939262&quot;
      slow_type(el, text)
      browser.find_element_by_xpath(&quot;//*[@id='Email']&quot;).send_keys(l)
      time.sleep(0.5)
      browser.find_element_by_xpath(&quot;/html/body/div[5]/div/div/div/div[1]/div/div[1]/div[2]/div/form/div/div[6]/div/div/span[1]/label&quot;).click()
      time.sleep(0.5)
      browser.find_element_by_xpath(&quot;//*[@id='DateOfBirthDay']/option[14]&quot;).click()
      time.sleep(0.5)
      browser.find_element_by_xpath(&quot;//*[@id='DateOfBirthMonth']/option[6]&quot;).click()
      time.sleep(0.5)
      browser.find_element_by_xpath(&quot;//*[@id='DateOfBirthYear']/option[93]&quot;).click()
      browser.find_element_by_xpath(&quot;//*[@id='AcceptKVKK']&quot;).click()
      browser.find_element_by_xpath(&quot;//*[@id='register-button']&quot;).click()
      browser.quit()
  </code></pre>