简体   繁体   English

按钮单击在Selenium IDE中不起作用

[英]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. 全部,我使用的是clickAndWait xpath=//button[contains(.,'Next')] ,当我单击Selenium IDE上的find却不单击Button时,它确实显示。 The button has id = pmc_wizard_next and class = btn btn-next. 该按钮具有id = pmc_wizard_next和class = btn btn-next。

The html for the button is: 该按钮的html是:

<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 . clickAndWait通常会给出超时错误。 you can either use 你可以使用

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

hope this answer would help you! 希望这个答案对您有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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