title: How to click on a button without ID using Python Selenium?
body: <p>Basically, I am writing a script, that should open a specific URL on chrome, press certain buttons, login, press another button, and terminate chrome.</p>
  <p>until now, it was pretty easy to do, because every button or field I needed had its own ID's.</p>
  <p>Now, I have to press on a button, that does not have the ID and I am not sure how to do it.</p>
  <p><a href="https://i.stack.imgur.com/qC1St.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qC1St.png" alt="enter image description here" /></a></p>
  <p>here is my code.</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import pyautogui
  import time
  browser = webdriver.Chrome('XXX')
  browser.get(&quot;XXX&quot;)
  
  details_bttn = browser.find_element_by_id('details-button')
  details_bttn.click()
  proceed_bttn = browser.find_element_by_id('proceed-link')
  proceed_bttn.click()
  username = browser.find_element_by_id('login_name')
  username.click()
  username.send_keys('XXX')
  password = browser.find_element_by_id('login_password')
  password.click()
  password.send_keys('XXX')
  password.send_keys(Keys.ENTER)
  </code></pre>
  <p>I tried to do it with Xpath but it did not work, because the button only lit up, but it was not clicked. It is my first time working with python, so I definitely lack experience.</p>