title: Selenium: Not able to select the radio button
body: <p>I am trying to select a radio button using selenium, when I run script selenium doesn't select the radio button and moves to the next step without selecting the radio button without giving me any error. </p>
  <p>Below is the HTML for the same:</p>
  <pre><code>&lt;div class=&quot;col-12 scrolling pend active&quot; id=&quot;mergeTransTable&quot;&gt; 
      &lt;div class=&quot;title-table transactions&quot;&gt;
          &lt;div class=&quot;expenseDetailId&quot; style=&quot;cursor: pointer;&quot;&gt;
              &lt;input id=&quot;hdnMergeOtherDataCount&quot; name=&quot;hdnMergeOtherDataCount&quot; type=&quot;hidden&quot; value=&quot;0&quot;&gt;
          &lt;/div&gt;                                                                       
          &lt;div class=&quot;comment&quot; style=&quot;cursor: pointer;&quot; width=&quot;20%&quot;&gt;Comment
          &lt;div class=&quot;vendor&quot; style=&quot;cursor: pointer;&quot;&gt;Vendor &lt;/div&gt;                
          &lt;/div&gt;
              &lt;div class=&quot;receipt&quot; style=&quot;cursor: pointer;&quot;&gt;
                  Receipt
          &lt;/div&gt;            
      &lt;/div&gt;            
      &lt;div class=&quot;data-table transactions&quot;&gt;
          &lt;div class=&quot;expenseDetailId&quot; data-title=&quot;ExpenseDetailId&quot; style=&quot;margin-top:2%;&quot;&gt;
              &lt;input type=&quot;radio&quot; name=&quot;ExpenseDetailId&quot; id=&quot;ExpenseDetailId&quot; class=&quot;chk&quot; value=&quot;163867&quot;&gt;
          &lt;/div&gt;
          &lt;div class=&quot;vendor&quot; data-title=&quot;Vendor&quot;&gt;AMAZON&lt;/div&gt;                
          &lt;div class=&quot;comment&quot; data-title=&quot;Comment&quot; width=&quot;20%&quot;&gt;
              UBER
          &lt;/div&gt;              
               &lt;div class=&quot;receipt&amp;quot;&quot; data-title=&quot;Receipt&quot;&gt;                    
                  &lt;a id=&quot;Receipt&quot; href=&quot;abc.com&quot; onclick=&quot;return ViewReceipt('/ExpenseDetailId=163867')&quot;&gt;Receipt&lt;/a&gt;                     
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Below is the xpaths I am writing for selecting the radio button</p>
  <pre><code>driver.findElement(By.xpath(&quot;//*[@id='mergeTransTable']/div[2]/div[1]&quot;)).click();
  driver.findElement(By.xpath(&quot;//div[@id='mergeTransTable']//div[@class='expenseDetailId' or starts-with(@data-title,'ExpenseDetailId')]&quot;)).click();
  </code></pre>
  <p>Using the CSS doesn't help either.</p>
  <p>Tried Java Script and Action class also but nothing seems to be working. Selenium just don't select the radio button</p>