title: How do I get a popup validation message from a page using selenium Python?
body: <p>How do I get the popup validation message &quot;Please tick this box if you want to continue&quot; using Selenium Python in the photo?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input oninvalid="this.setCustomValidity('Please tick this box if you want to proceed')" oninput="this.setCustomValidity('')" class="form-check-input checkbox-switch-md" type="checkbox" id="registerTermsCheckboxId" required=""&gt;</code></pre>
  </div>
  </div>
  
  <a href="https://i.stack.imgur.com/dPQAI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dPQAI.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/Qchv6.png" rel="nofollow noreferrer">Screenshot</a></p>