[英]Selenium IDE : Not able to automate click event on button
無法自動執行按鈕上的點擊事件。 按鈕的詳細信息是:
<input id="ctl01_ContentPlaceHolder1_tcInvoice_tpInvoiceDetails_btnSave" class="button" type="submit" onclick="javascript:return disableit();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl01$ContentPlaceHolder1$tcInvoice$tpInvoiceDetails$btnSave", "", true, "vgInvoice", "", false, false))" value="Create Invoice" name="ctl01$ContentPlaceHolder1$tcInvoice$tpInvoiceDetails$btnSave">
請指教
我不熟悉Selenese語法,但快速瀏覽一下,您可以嘗試以下操作:
clickAndWait | id=ctl01_ContentPlaceHolder1_tcInvoice_tpInvoiceDetails_btnSave
或者,您可以嘗試使用xpath定位器:
clickAndWait | xpath=//input[@value='Create Invoice']
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.