title: Selenium find element with form action
body: <p>I am currently trying out Selenium to develop a program to automate testing of the login form of websites.</p>
  
  <p>I am trying to use Selenium to find a form on the websites that I am testing on and I've noticed that different websites has different form name, form id or even websites that doesn't have both.
  But from my observations, I've noticed that form action is always there and I've used the codes below to retrieve the name of the form action</p>
  
  <pre><code>request = requests.get("whicheverwebsite")
  parseHTML = BeautifulSoup(request.text, 'html.parser')
  htmlForm = parseHTML.form
  formName = htmlForm['action'] 
  </code></pre>
  
  <p>I am trying to retrieve the form and then using form.submit() to submit.</p>
  
  <p>I know of the functions find_element_by_name and find_element_by_name, but as I am trying to find the element by action and i am not sure how this can be done.</p>