title: Selenium C# How do I inspect an element which opens a pop up dialog. I think it may be a JavaScript event
body: <p>I am trying to get the text value from an element from a web page.  I have the username field, password field and the Go button (Submit) elements.
  I leave the username and password field blank and I click the Go button.
  A pop up field displays just below the username field and the text value is "Please fill out this field"</p>
  
  <p>I would like to capture the text "Please fill out this field" and then I can do an assert on it to verify this text has displayed.
  The url is <a href="https://inplay.betway.com" rel="nofollow noreferrer">https://inplay.betway.com</a></p>
  
  <p>I am not able to inspect the element of this pop up.  It could be a JavaScript event that triggers this pop up to display.</p>
  
  <p>If i inspect the Go button the HTML is:</p>
  
  <pre><code>    &lt;div id="login" class="right"&gt;
  &lt;form id="loginForm"&gt;
      &lt;div class="loginInputs"&gt;
      &lt;div class="loginSubmit"&gt;
          &lt;input class="loginbutton" value="Go" type="submit"/&gt;
      &lt;/div&gt;
      &lt;div class="clear"/&gt;
  &lt;/form&gt;
      &lt;div id="loginError" class="hide"&gt;
      &lt;div class="loginErrorText"/&gt;
      &lt;/div&gt;
      &lt;div class="clear"/&gt;
  </code></pre>
  
  <p>How do i get the text value from the element?
  I am using Selenium C#</p>
  
  <p>Thanks, Riaz</p>