RE: Unable to call the “OK” button in boot box

And also tried the xpath “driver.findElementByXPath(“//button[text()=’OK’]”).click(); ”

<div class=”modal-content”><div class=”modal-body”><button type=”button” class=”bootbox-close-button close”>×</button><div class=”bootbox-body”>Email saved successfully</div></div><div class=”modal-footer”><button data-bb-handler=”ok” type=”button” class=”btn btn-primary”>OK</button></div></div>

Got error as “element not visible”

Mrudula Default Asked on September 23, 2014 in Selenium WebDriver.
Add Comment
1 Answers

Put Some Thread.sleep();
Before clicking on That Element


Vice Professor Answered on September 23, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.