<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
<div class="ui-dialog-buttonset">
<button class="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">
Export
</span>
</button>
<button class="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>
</div>
For above html, I want to select Export button. But the following codes didn't work. What's wrong?
find_element_by_css_selector('Export').click()
find_element_by_xpath(".//*[contains(text(), 'Export')]").click()
find_element_by_link_text('Export').click()
rslt = find_element_by_link_text('Export').click()