How do I click on the following button "OK" using XPath:
driver.findElement (By.xpath ("//button[@class='btn btn-primary crtBtn btn btn-default']");
Screenshot:

How do I click on the following button "OK" using XPath:
driver.findElement (By.xpath ("//button[@class='btn btn-primary crtBtn btn btn-default']");
Screenshot:

Hello you can try this xpath :
.//button[@type='button']
Also put wait as Thread.sleep before clicking this element.