title: Printing text from success toast message in selenium
body: <p>I am new to selenium, I am working on a web application where on clicking "save and next" button a success/warning toast message will be displayed for 5 seconds. I want to print this message. Can anyone help me with this?</p>
  
  <p>Below is the html for the same.</p>
  
  <p><img src="https://i.stack.imgur.com/dKDC9.png" alt="enter image description here"></p>
  
  <pre><code>&lt;div class="alert-message animated"&gt;
          &lt;alert type="alert.type"&gt;&lt;!----&gt; &lt;/alert&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/nuVdx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nuVdx.png" alt="enter image description here"></a></p>