[英]Selenium IDE : Not able to automate click event on button
Not able to automate click event on button. 无法自动执行按钮上的点击事件。 the Button details are :
按钮的详细信息是:
<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">
Please advise 请指教
I'm not familiar with Selenese syntax but from a quick look you could try something like: 我不熟悉Selenese语法,但快速浏览一下,您可以尝试以下操作:
clickAndWait | id=ctl01_ContentPlaceHolder1_tcInvoice_tpInvoiceDetails_btnSave
Alternatively you could try using the xpath locator: 或者,您可以尝试使用xpath定位器:
clickAndWait | xpath=//input[@value='Create Invoice']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.