I have an Acknowledge button and I want to click it. I have tried all the three methods listed below. But it is not working.
driver.findElement(By.cssSelector("input.btn.btn.primary")).submit();
driver.findElement(By.xpath("//*[@id='content']/div[2]/div/input")).click();
driver.findElement(By.xpath("//*[@value='I Acknowledge' ")).click();
This is the HTML Of the page:
<input class="btn btn-primary" type="button" value="I Acknowledge">