title: How to press login button in selenium python 3
body: <p>I am able to enter username and password, but not able to press login button in selenium. May you advise? I didn't put the specific website, sorry.</p>
  
  <p>thanks so much for your help!</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  
  from selenium.webdriver.chrome.options import Options
  
  chrome_options = Options()
  chrome_options.add_argument("--disable-infobars")
  driver = webdriver.Chrome(executable_path = "C:\Python36-32\selenium\chromedriver",chrome_options=chrome_options)
  
  
  driver.get("website")
  
  
  elem = driver.find_element_by_name("UserName")
  elem.send_keys("test")
  
  elem = driver.find_element_by_name("Password")
  elem.send_keys("test")
  </code></pre>
  
  <h1>Above Work</h1>
  
  <h1>Below, Not Sure Here</h1>
  
  <pre><code>elem = driver.find_element_by_type("submit")
  elem.click()
  </code></pre>
  
  <hr>
  
  <p>Outer HTML</p>
  
  <pre><code>&lt;input value="" class="userid-button" type="submit"&gt;
  </code></pre>
  
  <p>Selector</p>
  
  <pre><code>#online_login &gt; input.userid-button
  </code></pre>
  
  <p>XPath</p>
  
  <pre><code>//*[@id="online_login"]/input[3]
  </code></pre>
  
  <p>Element</p>
  
  <pre><code>&lt;input value="" class="userid-button" type="submit"&gt;
  </code></pre>