I cannot click on this button contained in a modal
this is the html
<div class="col-md-6 col-sm-6 col-xs-12">
<button class="btn modal-button full-btn" id="saveexit" type="button">
Save and Exit</button>
</div>
Here is the java code:
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\"saveexit\"]")))
I have also tried with:
cssSelector: #saveexit
cssPath: html.no-touch body div.remodal-wrapper.remodal-is-opened div.modaliAdesione.remodal.remodal-is-initialized.remodal-is-opened
div.modal-dialog div.modal-content.modal-custom-content div.modal-footer div.row.text-center div.col-md-6.col-sm-6.col-xs-12
button#saveexit.btn.modal-button.full-btn
xpath: //*[@id="saveexit"]
this is the error I am getting:
Expected condition failed: waiting for visibility of element located by ...
I also asked a similar question on StackOverflow
I am new to Selenium so excuse me if it is a silly question. Here is an extract of the html code: https://codeshare.io/arLW9q
Please note: if I run document.getElementById('saveexit').click();
from browser's console it works out