title: Unable to click on Charges type dropdownbox present in row or grid in selenium webdriver java
body: <p>I have tried click on dropdown box. See attached screenshot. Click is not happening on specific element.<br />
  my code</p>
  <pre><code>for (util = 2; util &lt;= 7; util++) 
      {
          
          
          WebElement chkbx1 = driver.findElement(By.xpath(&quot;//cpq-table[@id='lig-table']/div/div/div[2]/div/div[2]/div/div[&quot;+util+&quot;]&quot;));
          System.out.println(&quot;Element Position::::&gt;&quot;+util);
          Lbltxt=chkbx1.getText();
          Attvalue=chkbx1.getAttribute(&quot;title&quot;);
          System.out.println(&quot;Element catched----&gt;&quot;+Lbltxt);
          //cls.drawBorder(driver, chkbx1);
          if (Lbltxt.contains(&quot;Please Select&quot;))
          {
              
          //  System.out.println(&quot;Attribute is&quot;+Attvalue);
               
          System.out.println(&quot;Element is&quot;+Lbltxt);
          //cls.clickButton(chkbx1, driver);
          Thread.sleep(5000);
          //cls.drawBorder(driver, chkbx1);   
      action1.moveToElement(chkbx1).click().build().perform();
          chkbx1.click();
          System.out.println(&quot;---Clicked----&quot;);
          robot.keyPress(KeyEvent.VK_ENTER);
          //robot.keyPress(KeyEvent.KEY_PRESSED);
          //robot.keyPress(KeyEvent.VK_TAB);
      break;
                      
      }
          
      }
  </code></pre>
  <p><img src="https://i.stack.imgur.com/M44Of.jpg" alt="enter image description here" /></p>