簡體   English   中英

按鈕單擊在Selenium IDE中不起作用

[英]Button Click not working in Selenium IDE

全部,我使用的是clickAndWait xpath=//button[contains(.,'Next')] ,當我單擊Selenium IDE上的find卻不單擊Button時,它確實顯示。 該按鈕具有id = pmc_wizard_next和class = btn btn-next。

該按鈕的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>

就我而言,單擊該按鈕不會將其導航到下一頁,但是會執行下一頁上的所有操作。

謝謝。

clickAndWait通常會給出超時錯誤。 你可以使用

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

希望這個答案對您有幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM