title: How to click on pseudo:before and pseudo:after in selenium
body: <p>I tried with action class, but could not click on radio button.
  please suggest any other option.</p>
  
  <p>My Code:</p>
  
  <pre><code>List&lt;WebElement&gt; myList = driver.findElements(By.xpath("//div[@id='editEmployeePopup']//div//tbody//tr[2]//td[1]"));
          Actions build = new Actions(driver);
          build.moveToElement(myList.get(0)).moveByOffset(-40, -3).click().build().perform();
  </code></pre>
  
  <p>HTML Code:</p>
  
  <pre><code>&lt;tr class="emp-bg" style="display: table-row;"&gt;
  &lt;td class="work-link work-detail" style=""&gt;
      &lt;div class=""&gt;
          &lt;p style=""&gt;
              &lt;input type="radio" id="edit_em0" class="workLocPlot_edit" name="work_location_edit" wlpk_id="1736" data_wl_id="Kaghaznagar" lat="26.38" wl-name="Adilabad" lon="72.5" /&gt;
              &lt;label for="edit_em0"&gt;::before
              ::after&lt;/label&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  &lt;/td&gt;
  &lt;td class=" work-link work-detail" style=""&gt;Kaghaznagar&lt;/td&gt;
  &lt;td class=" work-link work-detail"&gt;Adilabad&lt;/td&gt;
  </code></pre>
  
  <p></p>
  
  <p>Screenshot :</p>
  
  <p><a href="https://i.stack.imgur.com/wIrDm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wIrDm.png" alt="enter image description here"></a></p>