I want to Click the "OK" button during a Selenium test but the Element is not visible.
driver.findElement(By.xpath("//*[@id="5f6e7b16-0fa1-4db6-869b-3a6ba6b0fafe"]")).click();
<div class="bootstrap-dialog-footer-buttons">
<button class="btn btn-default" id="5a4bb849-7a61-4603-9ef2-f9e0ecab4523">
<span class="glyphicon glyphicon-ban-circle"></span> Cancel
</button>
<button class="btn btn-warning" id="f7f4b18b-2ba2-4c1e-b541-a254c080f398">
<span class="glyphicon glyphicon-ok"></span> Ok
</button>
</div>
See Question&Answers more detail:os