title: Unable to click a button in Selenium
body: <p>I'm facing a tough time clicking a button from Selenium.</p>
  
  <p>Here's the DOM: <a href="http://pasteboard.co/GHIjMd6.png" rel="nofollow noreferrer">http://pasteboard.co/GHIjMd6.png</a></p>
  
  <p>I've declared the button WebElement this way using Xpath (a valid Xpath that returns one node as per Firepath):</p>
  
  <pre><code>WebElement send_this_msg_btn = driver.findElement(By.xpath("//*[@class='mp-button-content'][.='Send This Message']"));
  </code></pre>
  
  <p>I've tried clicking the said button with <code>send_this_msg_btn</code> Xpath in below mentioned ways, but none of them work for me.</p>
  
  <p>WebDriver's <code>click()</code> method : <code>send_this_msg_btn.click()</code></p>
  
  <p>JavaScriptExecutor:</p>
  
  <pre><code>JavaScriptExecutor jse = (JavaScriptExecutor)driver;
  jse.executeScript("arguments[0].click();", send_this_msg_btn);
  </code></pre>
  
  <p>Actions class:</p>
  
  <pre><code>Actions actions = new Actions(driver);
  actions.moveToElement(send_this_msg_btn);
  actions.click();
  actions.build().perform();
  </code></pre>
  
  <p>I also checked if the button is inside a frame/iframe, but that's not the case either.</p>