[英]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.