I am having trouble locating the element that contains both "Confirm" and "Cancel" without using Xpath. Can anyone suggest a better approach to find this element? Below is the HTML code snippet:
<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
<div class="ui-dialog-buttonset">
<button class="btn-confirm-dialog ui-button ui-widget ui-state-default ui-corner-all ui- button-text-only" type="button" role="button" aria-disabled="false">
<span class="ui-button-text">Confirm</span>
</button>
<button class="btn-confirm-dialog ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" role="button" aria-disabled="false">
<span class="ui-button-text">Cancel</span>
</button>
</div>