title: How to click on the psuedo element that has a pop up checkbox element in selenium?
body: <p>I am trying to automate test script and ran upon the pseudo element which seems to not clickable using normal element finders. The element to be clicked is a field after which the checkbox pop which is to be clicked again.</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;span class="mat-select-placeholder mat-select-min-line ng-tns-c156-64 ng-star-inserted"&gt;
  :before==$0
  &lt;/span&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/fEq2v.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>I have tried to click it using Actions method and JavascriptExecutor but was not able to. Please help.</p>
  <p>This is the codes that I have tried.</p>
  <pre><code>driver.findElement(By.xpath(&quot;//span[@class='mat-select-placeholder mat-select-min-line ng-tns-c211-60 ng-star-inserted']&quot;).click();
  </code></pre>