简体   繁体   中英

Button Click not working in Selenium IDE

All, I am using clickAndWait xpath=//button[contains(.,'Next')] , it does show when i click find on Selenium IDE but 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>

In my case, when the button is clicked it doesn't navigate it to the next page however it does perform all the actions on the next page.

Thanks.

clickAndWait generally gives the timeout error . you can either use

click|target|
waitForElementPresent|the next element that could be possibly reached after click|

hope this answer would help you!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM