I encountered an ElementNotVisibleException error, even though the element appeared to be visible based on the screenshot in the logs. The button is controlled by JavaScript and can switch between enabled and disabled states. Here's the code for the disabled state:
<button id="continue" type="submit" class="btn btn-primary btn-lg next pull-right btn-group-vertical" data-bind="enable: selectedRegistrationCandidates().length > 0" disabled="">Continue</button>
And here's the code for the enabled state:
<button id="continue" type="submit" class="btn btn-primary btn-lg next pull-right btn-group-vertical" data-bind="enable: selectedRegistrationCandidates().length > 0">Continue</button>
Even though I verified that the element was enabled before attempting to click on it, I still received an ElementNotVisibleException when running the following steps:
Select Individual
Click Element ${lnkFirstPerson}
Wait Until Page Does Not Contain NOBODY SELECTED
Wait Until Element Is Enabled ${btnContinue}
Click Element ${btnContinue}
Wait Until Page Contains Return to Step 1
If anyone can shed some light on why this may be happening and offer a possible solution, it would be greatly appreciated.