Button Click not working in Selenium IDE

最后都变了- 提交于 2019-12-24 13:33:52

问题


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.


回答1:


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!



来源:https://stackoverflow.com/questions/25842027/button-click-not-working-in-selenium-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!