title: How to login popup windows?
body: <p>i'm trying to login this <a href="https://en.gamefa.com/" rel="nofollow noreferrer">site</a> with selenium -python
  but i can't .i read another question but i didn't get it.
  how can i do it?
  this my error:
  <a href="https://i.stack.imgur.com/b68Ix.png" rel="nofollow noreferrer">enter image description here</a>
  this is my code:</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  import time
  driver = webdriver.Chrome()
  driver.get("https://en.gamefa.com/")
  driver.find_element_by_name("loginform").submit()
  driver.find_element_by_class_name("ModalBoxBody")#.submit()
  time.sleep(10)
  elem1 = driver.find_element_by_name("log")
  elem1.send_keys("mehrdad78")
  elem2 = driver.find_element_by_name("pwd")
  elem2.send_keys("mehrdad78").submit()
  </code></pre>