I am using clickAndWait
for xpath=//button[contains(.,'Next')]
When I click Find on Selenium IDE the button is found, but the script doesn't click on the button. The button has id = pmc_wizard_next
and class = btn btn-next
.
The html for the button is:
<div id="pmc_wizard" class="wizard pmc-wizard">
<ul class="steps pmc-wizard-steps"> … </ul>
<div class="actions pmc-wizard-actions">
<button id="pmc_wizard_prev" class="btn btn-prev"> … </button>
<button id="pmc_wizard_next" class="btn btn-next" data-last="Submit">
Next
<i class="icon-arrow-right"></i>
</button>
</div>
</div>
When the button is clicked, it doesn't navigate to the next page, however it does perform all the actions on the next page.
What should I be doing?
submit()
rather thanclick()
.