title: Button was not actually clicked but shows element.click() performed in selenium script
body: <p>I'm writing an automation script for a Pega Web application. I have button click functionality, but actually the button is not getting clicked when i ran the script.When I check the logs, it shows that action was performed but it's not actually clicking the button.</p>
  <p>I tried below actions but nothing works,</p>
  <pre><code>WebDriverWait wait = new WebDriverWait(driver, 80);
              wait.until(ExpectedConditions.elementToBeClickable(By.xpath(&quot;//button[contains(text(),'Submit')]&quot;)));
  
  driver.findElement(By.xpath(&quot;//button[contains(text(),'Submit')]&quot;)).click();
  </code></pre>
  <p>Then i tried below code,</p>
  <pre><code>WebDriverWait wait = new WebDriverWait(driver, 80);
              wait.until(ExpectedConditions.elementToBeClickable(By.xpath(&quot;//button[contains(text(),'Submit')]&quot;)));
  
  WebElement button=driver.findElement(By.xpath(&quot;//button[contains(text(),'Submit')]&quot;));
  
  button.sendKeys(Keys.RETURN);
  </code></pre>
  <p>Also i tried javascript as well,</p>
  <pre><code>JavascriptExecutor jse = (JavascriptExecutor) driver;
      jse.executeScript(&quot;arguments[0].click();&quot;, button);
  </code></pre>