HTML:
<button type="button" class="modal-footer-button g-capitalize btn btn link">Cancel</button>
Code trial:
By.xpath("//button[@type='button']").click()
didn't work.
Tried number of other ways too. Unable to click on Cancel button. error:
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//button[@type='button'][@class='modal-footer-button g-capitalize btn btn-link'][@value='Cancel']"}
<frame>tag? - Guy