title: How to click on the element using selenium where only "::Before" tag is present
body: <p>I am trying to Navigate on the next month in calendar using the Selenium with Java but for the <code>&gt;</code> (Button on calendar to navigate in next month) element only below information is present.</p>
  
  <pre><code>&lt;a class="react-datepicker__navigation react-datepicker__navigation--next"&gt;
  ::before
  &lt;/a&gt;==$0
  </code></pre>
  
  <p>and the class tag is not pointing to the <code>&gt;</code> instead it is pointing somewhere else on the page only "::before" is pointing the element <code>&gt;</code></p>
  
  <p>Please suggest how to click on <code>&gt;</code> element ?</p>
  
  <p>I tried with <code>Xpath //*[@class='react-datepicker__navigation react-datepicker__navigation--next']</code> but its points some where else on the page so this is not working.</p>
  
  <pre><code>driver.findElement(By.xpath("//*[@class='react-datepicker__navigation react-datepicker__navigation--next']")).click();
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/ZsE6e.png" alt="Please see this image for more information"></p>