title: clicking a button of a message with selenium
body: <p>I am trying to register to mail.protonmail via selenium, the captcha I will try to solve with ML.</p>
  
  <p>But I have found myself spending hours on something I thought would take a few minutes.</p>
  
  <p>After I press Create account - </p>
  
  <p><a href="https://i.stack.imgur.com/AapyA.png" rel="nofollow noreferrer">The message that pops</a></p>
  
  <p>i tried to just find its xpath/id but it doesnt seem to find it.</p>
  
  <p>It doesnt detect a new window/alert, so i am kinda hopeless right now...</p>
  
  <p>Here is the html code if it might help you:</p>
  
  <pre><code>&lt;button id="confirmModalBtn" autofocus="" class="pm_button primary modal-footer-button"&gt;Confirm&lt;/button&gt;
  </code></pre>
  
  <p>And what i did:</p>
  
  <pre><code>web = webdriver.Chrome(executable_path=r"D:\geckodriver \chromedriver.exe")
  web.get(r'https://mail.protonmail.com/create/new?language=en')
  # filling the data and getting to message i posted above..
  accept_ele = web.find_element_by_class_name('pm_button primary modal-footer-button') # doesnt work
  accept_ele = web.find_element_by_xpath('/html/body/div[1]/form/div[2]/button[2]') # doesnt work
  </code></pre>